org.solovyev.android.network
Class NetworkStateServiceImpl

java.lang.Object
  extended by org.solovyev.android.network.NetworkStateServiceImpl
All Implemented Interfaces:
NetworkStateService

public final class NetworkStateServiceImpl
extends Object
implements NetworkStateService


Field Summary
 
Fields inherited from interface org.solovyev.android.network.NetworkStateService
TAG
 
Constructor Summary
NetworkStateServiceImpl()
           
 
Method Summary
 boolean addListener(NetworkStateListener listener)
           
 NetworkData getNetworkData()
           
 boolean removeListener(NetworkStateListener listener)
           
 void startListening(android.content.Context context)
          This method starts listening for network connectivity state changes.
 void stopListening()
          This method stops this class from listening for network changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkStateServiceImpl

public NetworkStateServiceImpl()
Method Detail

startListening

public void startListening(@Nonnull
                           android.content.Context context)
Description copied from interface: NetworkStateService
This method starts listening for network connectivity state changes.

Specified by:
startListening in interface NetworkStateService
Parameters:
context - context

addListener

public boolean addListener(@Nonnull
                           NetworkStateListener listener)
Specified by:
addListener in interface NetworkStateService

removeListener

public boolean removeListener(@Nonnull
                              NetworkStateListener listener)
Specified by:
removeListener in interface NetworkStateService

stopListening

public void stopListening()
Description copied from interface: NetworkStateService
This method stops this class from listening for network changes.

Specified by:
stopListening in interface NetworkStateService

getNetworkData

@Nonnull
public NetworkData getNetworkData()
Specified by:
getNetworkData in interface NetworkStateService


Copyright © 2013. All Rights Reserved.