public class NetworkStatusBridge extends BaseCommunicationBridge implements INetworkStatus, APIBridge
apiGroup| Constructor and Description |
|---|
NetworkStatusBridge(INetworkStatus delegate)
Constructor with delegate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNetworkStatusListener(INetworkStatusListener listener)
Add the listener for network status changes of the app
|
INetworkStatus |
getDelegate()
Get the delegate implementation.
|
APIResponse |
invoke(APIRequest request)
Invokes the given method specified in the API request object.
|
void |
removeNetworkStatusListener(INetworkStatusListener listener)
Un-registers an existing listener from receiving network status events.
|
void |
removeNetworkStatusListeners()
Removes all existing listeners from receiving network status events.
|
void |
setDelegate(INetworkStatus delegate)
Set the delegate implementation.
|
getAPIGroup, getAPIVersion, getJSONParserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAPIGroup, getAPIVersionpublic NetworkStatusBridge(INetworkStatus delegate)
delegate - The delegate implementing platform specific functions.public final INetworkStatus getDelegate()
public final void setDelegate(INetworkStatus delegate)
delegate - The delegate implementing platform specific functions.public void addNetworkStatusListener(INetworkStatusListener listener)
addNetworkStatusListener in interface INetworkStatuslistener - Listener with the resultpublic void removeNetworkStatusListener(INetworkStatusListener listener)
removeNetworkStatusListener in interface INetworkStatuslistener - Listener with the resultpublic void removeNetworkStatusListeners()
removeNetworkStatusListeners in interface INetworkStatuspublic APIResponse invoke(APIRequest request)
invoke in interface APIBridgeinvoke in class BaseCommunicationBridgerequest - APIRequest object containing method name and parameters.