initialTrigger property

GeofenceEventType initialTrigger
final

The initial trigger for the geofence zone.

If, at the moment of adding the geofence, the initial trigger matches one of the triggers, the event will be triggered.

For example: if the initial trigger is set to GeofenceEventType.enter and the user is inside the geofence zone when the zone is added, the GeofenceEventType.enter event will be triggered.

The default value is GeofenceEventType.enter.

The current implementation for this field is only supported on Android devices.

Implementation

final GeofenceEventType initialTrigger;