org.solovyev.android.network
Interface NetworkStateService

All Known Implementing Classes:
NetworkStateServiceImpl

public interface NetworkStateService


Field Summary
static String TAG
           
 
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.
 

Field Detail

TAG

static final String TAG
See Also:
Constant Field Values
Method Detail

startListening

void startListening(@Nonnull
                    android.content.Context context)
This method starts listening for network connectivity state changes.

Parameters:
context - context

stopListening

void stopListening()
This method stops this class from listening for network changes.


addListener

boolean addListener(@Nonnull
                    NetworkStateListener listener)

removeListener

boolean removeListener(@Nonnull
                       NetworkStateListener listener)

getNetworkData

@Nonnull
NetworkData getNetworkData()


Copyright © 2013. All Rights Reserved.