public abstract class NetworkReachabilityManager extends Object
Constructor and Description |
---|
NetworkReachabilityManager() |
Modifier and Type | Method and Description |
---|---|
void |
addNetworkReachabilityListener(NetworkReachabilityListener listener)
Add Network Reachability Listener
|
protected void |
notifyListenersNetworkReachable()
Notify listeners that the network is now reachable
|
protected void |
notifyListenersNetworkUneachable()
Notify listeners that the network is now unreachable
|
void |
removeNetworkReachabilityListener(NetworkReachabilityListener listener)
Remove Network Reachability Listener
|
protected abstract void |
startListening()
This method starts listening for network connectivity state changes.
|
protected abstract void |
stopListening()
This method stops this class from listening for network changes.
|
public void addNetworkReachabilityListener(NetworkReachabilityListener listener)
public void removeNetworkReachabilityListener(NetworkReachabilityListener listener)
protected void notifyListenersNetworkReachable()
protected void notifyListenersNetworkUneachable()
protected abstract void startListening()
protected abstract void stopListening()