Package com.iplateia.sorisdk
Object NetworkMonitor
-
- All Implemented Interfaces:
public class NetworkMonitorSingleton network monitor that persists beyond Service lifecycle.
-
-
Field Summary
Fields Modifier and Type Field Description public final static NetworkMonitorINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitstartMonitoring(Context context)Start monitoring network changes final UnitcheckNetworkAndProcessPending(Context context)Manually check network state and process pending requests if needed. final UnitstopMonitoring()Stop monitoring network changes -
-
Method Detail
-
startMonitoring
final Unit startMonitoring(Context context)
Start monitoring network changes
-
checkNetworkAndProcessPending
final Unit checkNetworkAndProcessPending(Context context)
Manually check network state and process pending requests if needed. This can be called to force a network check without waiting for a broadcast.
-
stopMonitoring
final Unit stopMonitoring()
Stop monitoring network changes
-
-
-
-