initialTriggers property

List<GeofenceEventType> initialTriggers
final

The set of initial triggers for the geofence zone.

Each entry that matches the device's state at the moment of adding the zone is reported: GeofenceEventType.enter fires if the device is already inside, GeofenceEventType.exit fires if it is already outside. Passing both therefore always yields exactly one event, which lets an app seed an inside/outside state without computing geometry itself.

Defaults to [initialTrigger] as given to the constructor, which defaults to GeofenceEventType.enter.

Implementation

final List<GeofenceEventType> initialTriggers;