Module: MCEGeofencePlugin

Acoustic MCE Geofence Cordova Plugin
Source:

Methods

(static) geofenceEnabled(callback)

Query if geofences are enabled or disabled
Parameters:
Name Type Description
callback geofenceEnabledCallback response callback.
Source:

(static) geofencesNear(callback, latitude, longitude, radius)

Get geofences nearby provided latitude and longitude
Parameters:
Name Type Description
callback geofencesNearCallback Callback data will be provided to
latitude double Latitude of center of area
longitude double Longitude of center of area
radius double Radius of area
Source:

(static) setGeofenceEnterCallback(callback)

Set callback for entering geofences
Parameters:
Name Type Description
callback geofenceCallback Callback executed when geofences are entered.
Source:

(static) setGeofenceExitCallback(callback)

Set callback for exiting geofences
Parameters:
Name Type Description
callback geofenceCallback Callback executed when geofences are exited.
Source:

Type Definitions

Geofence

Properties:
Name Type Description
latitude double Latitude of center of geofence.
longitude double Longitude of center of geofence.
radius double Radius of geofence in meters.
locationId string Unique location identifier.
Source:

geofenceCallback(geofence)

Parameters:
Name Type Description
geofence Geofence Geofence entered or exited.
Source:

geofenceEnabledCallback(status)

Parameters:
Name Type Description
status boolean True if geofences are enabled, false otherwise.
Source:

geofencesNearCallback(geofences)

Parameters:
Name Type Description
geofences Array.<Geofence> List of geofences
Source: