Options
All
  • Public
  • Public/Protected
  • All
Menu

The event-object provided to BackgroundGeolocation.onGeofencesChange.

The GeofencesChangeEvent provides only the changed geofences, those which just activated or de-activated.

example
BackgroundGeolocation.onGeofencesChange(geofencesChangeEvent => {
  console.log("[geofenceschange] ", geofencesChangeEvent.on, geofencesChangeEvent.off);
});

⚠️ Note:

  • When all geofences have been removed, empty lists will be provided for both on & off.

Hierarchy

  • GeofencesChangeEvent

Index

Properties

Properties

off

off: string[]

on

on: Geofence[]

Generated using TypeDoc