-
- All Implemented Interfaces:
-
io.getstream.android.core.api.observers.StreamStartableComponent,io.getstream.android.core.api.subscribe.StreamObservable
public interface StreamLifecycleMonitor implements StreamStartableComponent, StreamObservable<StreamLifecycleListener>
Aggregates lifecycle events from the host environment and re-emits them to registered listeners.
val subscription = lifecycleMonitor.subscribe(MyLifecycleListener()) lifecycleMonitor.start() // … later … subscription.getOrThrow().cancel() lifecycleMonitor.stop()
-
-
Method Summary
Modifier and Type Method Description abstract StreamLifecycleStategetCurrentState()Returns the current lifecycle state. -
-
Method Detail
-
getCurrentState
abstract StreamLifecycleState getCurrentState()
Returns the current lifecycle state.
-
-
-
-