registerGeofence(params: Object)
⚠️
Deprecated
Requires:
MapKit≥3.0.1@ray-js/ray≥1.2.10
Platforms:
iOSAndroid
Description
Register a geofence. Permission: [scope.location]
Parameters
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
geoTitle | string | No | - | Geofence name |
longitude | number | No | 0.0 | Longitude |
latitude | number | No | 0.0 | Latitude |
radius | number | No | 0 | Radius |
geofenceId | string | No | - | id |
type | number | No | 0 | Radius 0: enter geofence 1: leave geofence |
complete | () => void | No | - | Completion callback (executed on both success and failure) |
success | () => void | No | - | Callback on successful API call |
fail | (params: Object) => void | No | - | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None