Interface NetworkTypeObserver.Listener
-
- Enclosing class:
- NetworkTypeObserver
public static interface NetworkTypeObserver.ListenerA listener for network type changes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonNetworkTypeChanged(int networkType)Called when the network type changed or when the listener is first registered.
-
-
-
Method Detail
-
onNetworkTypeChanged
void onNetworkTypeChanged(@NetworkType int networkType)
Called when the network type changed or when the listener is first registered.This method is always called on the main thread.
-
-