-
public interface NetworkStateListenerCallback for network connectivity state changes. Implementations must be lightweight — heavy work should be offloaded to a background executor.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonNetworkStateChanged(Boolean isOnline)Invoked when connectivity state transitions between online and offline. -
-
Method Detail
-
onNetworkStateChanged
abstract Unit onNetworkStateChanged(Boolean isOnline)
Invoked when connectivity state transitions between online and offline. Guaranteed to fire only on actual state changes (consecutive duplicates are suppressed). May be called on any thread (system connectivity thread or main thread depending on API level).
-
-
-
-