public class GeolocationBridge extends BaseSensorBridge implements IGeolocation, APIBridge
apiGroup| Constructor and Description |
|---|
GeolocationBridge(IGeolocation delegate)
Constructor with delegate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGeolocationListener(IGeolocationListener listener)
Register a new listener that will receive geolocation events.
|
IGeolocation |
getDelegate()
Get the delegate implementation.
|
APIResponse |
invoke(APIRequest request)
Invokes the given method specified in the API request object.
|
void |
removeGeolocationListener(IGeolocationListener listener)
De-registers an existing listener from receiving geolocation events.
|
void |
removeGeolocationListeners()
Removed all existing listeners from receiving geolocation events.
|
void |
setDelegate(IGeolocation delegate)
Set the delegate implementation.
|
getAPIGroup, getAPIVersion, getJSONParserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAPIGroup, getAPIVersionpublic GeolocationBridge(IGeolocation delegate)
delegate - The delegate implementing platform specific functions.public final IGeolocation getDelegate()
public final void setDelegate(IGeolocation delegate)
delegate - The delegate implementing platform specific functions.public void addGeolocationListener(IGeolocationListener listener)
addGeolocationListener in interface IGeolocationlistener - to be registered.public void removeGeolocationListener(IGeolocationListener listener)
removeGeolocationListener in interface IGeolocationlistener - to be registered.public void removeGeolocationListeners()
removeGeolocationListeners in interface IGeolocationpublic APIResponse invoke(APIRequest request)
invoke in interface APIBridgeinvoke in class BaseSensorBridgerequest - APIRequest object containing method name and parameters.