public class NetworkReachabilityCallbackImpl extends BaseCallbackImpl implements INetworkReachabilityCallback
| Constructor and Description |
|---|
NetworkReachabilityCallbackImpl(long id)
Constructor with callback id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onError(INetworkReachabilityCallbackError error)
No data received - error condition, not authorized .
|
void |
onResult(boolean reachable)
Correct data received.
|
void |
onWarning(boolean reachable,
INetworkReachabilityCallbackWarning warning)
Data received with warning - ie Found entries with existing key and values have been overriden
|
getAPIGroup, getAPIVersion, getId, getJSONParserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAPIGroup, getAPIVersionpublic NetworkReachabilityCallbackImpl(long id)
id - The id of the callback.public void onError(INetworkReachabilityCallbackError error)
onError in interface INetworkReachabilityCallbackerror - Error valuepublic void onResult(boolean reachable)
onResult in interface INetworkReachabilityCallbackreachable - Indicates if the host is reachablepublic void onWarning(boolean reachable,
INetworkReachabilityCallbackWarning warning)
onWarning in interface INetworkReachabilityCallbackreachable - Indicates if the host is reachablewarning - Warning value