Object NetworkMonitor

  • All Implemented Interfaces:

    
    public class NetworkMonitor
    
                        

    Singleton network monitor that persists beyond Service lifecycle.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit startMonitoring(Context context) Start monitoring network changes
      final Unit checkNetworkAndProcessPending(Context context) Manually check network state and process pending requests if needed.
      final Unit stopMonitoring() Stop monitoring network changes
      • Methods inherited from class java.lang.Object

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