Skip to content

GeofenceEvent

public structGeofenceEvent

Geofence transition delivered to BGGeo.onGeofence.

The SDK fires this event each time the device crosses a monitored geofence boundary. Each event carries the transition type (ENTER, EXIT, or DWELL), the location recorded at the moment of the crossing, and the full Geofence record that triggered it.


Members

action

public let action: String

Transition type that fired: ENTER, EXIT, or DWELL.

extras

public let extras: [String: Any]?

Optional metadata originally configured on the Geofence. Present only when the geofence was created with an extras map.

geofence

public let geofence:BGGeo.Geofence

The complete Geofence record that triggered this event.

identifier

public let identifier: String

The Geofence.identifier of the geofence that triggered this event.

location

public let location:BGGeo.LocationEvent

Location recorded at the moment the geofence boundary was crossed.

timestamp

public let timestamp: Date

ISO-8601 UTC timestamp from the device system clock at the moment the OS delivered the geofence event.

In the Swift API, timestamp is a Date.