org.solovyev.android.network
Class NetworkStateServiceImpl
java.lang.Object
org.solovyev.android.network.NetworkStateServiceImpl
- All Implemented Interfaces:
- NetworkStateService
public final class NetworkStateServiceImpl
- extends Object
- implements NetworkStateService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkStateServiceImpl
public NetworkStateServiceImpl()
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.