Package 

Interface StreamLifecycleMonitor

  • 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 StreamLifecycleState getCurrentState() Returns the current lifecycle state.
      • Methods inherited from class io.getstream.android.core.api.observers.lifecycle.StreamLifecycleMonitor

        start, stop, subscribe
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait