isGeofenceReachLimit(params: Object)

⚠️

Deprecated

isReachLimit

Requires:
MapKit≥3.0.1@ray-js/ray≥1.2.10
Platforms:
iOSAndroid
import { map } from '@ray-js/ray';

const { isGeofenceReachLimit } = map;

// Promise usage
try {
  const res = await isGeofenceReachLimit();
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Description

Whether the geofence limit is reached. Permission: [scope.location]

Parameters

PropertyTypeRequiredDescription
complete() => voidNoCompletion callback (executed on both success and failure)
success(params: Object) => voidNoCallback on successful API call
fail(params: Object) => voidNoFailure callback
success callback parameters
PropertyTypeDescriptionMapKit Since
reachLimitbooleanWhether the geofence limit is reachedv3.0.5
fail callback parameters
PropertyTypeDescription
errorMsgstringError message
errorCodestring | numberError code
Error extension

Return Value

None

Examples

import { map } from '@ray-js/ray'

map.isGeofenceReachLimit({
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});