Package 

Interface StreamNetworkMonitor

  • All Implemented Interfaces:
    io.getstream.android.core.api.observers.StreamStartableComponent , io.getstream.android.core.api.subscribe.StreamObservable

    
    public interface StreamNetworkMonitor
     implements StreamStartableComponent, StreamObservable<StreamNetworkMonitorListener>
                        

    Observes changes to the device's active network and provides snapshots of its capabilities.

    Implementations are expected to be lifecycle-aware and safe to invoke from any thread.

    val subscription = monitor.subscribe(listener).getOrThrow()
    monitor.start()
    
    // ... later ...
    subscription.cancel()
    monitor.stop()
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class io.getstream.android.core.api.observers.network.StreamNetworkMonitor

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

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