-
- 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()