public class PreLollipopNetworkObservingStrategy extends java.lang.Object implements NetworkObservingStrategy
| Constructor and Description |
|---|
PreLollipopNetworkObservingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
<any> |
observeNetworkConnectivity(android.content.Context context)
Observes network connectivity
|
void |
onError(java.lang.String message,
java.lang.Exception exception)
Handles errors, which occurred during observing network connectivity
|
protected void |
tryToUnregisterReceiver(android.content.Context context,
android.content.BroadcastReceiver receiver) |
public <any> observeNetworkConnectivity(android.content.Context context)
NetworkObservingStrategyobserveNetworkConnectivity in interface NetworkObservingStrategycontext - of the Activity or an Applicationprotected void tryToUnregisterReceiver(android.content.Context context,
android.content.BroadcastReceiver receiver)
public void onError(java.lang.String message,
java.lang.Exception exception)
NetworkObservingStrategyonError in interface NetworkObservingStrategymessage - to be processedexception - which was thrown