FenceExited

@objcMembers
public class FenceExited : NSObject
extension FenceExited: JsonString

A FenceExited event is triggered when the device leaves a zone and an Exit trigger is to be registered in Canvas

  • Type of this event. fenceExited

    Declaration

    Swift

    public let eventType: EventType
  • Date Time when the trigger event happened

    Declaration

    Swift

    public let eventTime: Date
  • Name of the last crossed fence leading up to the trigger event

    Declaration

    Swift

    public let fenceName: String
  • Unique Id of the last crossed fence leading up to the trigger event

    Declaration

    Swift

    public let fenceId: UUID
  • The Location Update leading to the event

    Declaration

    Swift

    public let locations: [CLLocation]
  • Application-related detail

    Declaration

    Swift

    public let appState: AppState
  • Trigger Engine of the PointSDK when this trigger happens.

    Available values: [bd, native].

    • bd engine is the default engine running when app is running on background.
    • native engine utilizes the iOS native Geo Fencing when the app is not running.

    See our documentation for more details:

    Declaration

    Swift

    public let triggerEngine: TriggerEngine
  • Distance from the last Location causing the exit event to the Zone, in meters.

    Declaration

    Swift

    public let distance: Float
  • Distance required from the zone to trigger an exit event, in meters.

    Declaration

    Swift

    public let distanceRequired: Float
  • Dwell time from entry to exit, in milliseconds

    Declaration

    Swift

    public let dwellTime: TimeInterval
  • Local Timezone of the device when the FenceEntered event happens

    Declaration

    Swift

    public let timeZoneIdentifier: String
  • Unique ID of the FenceEntered event

    Declaration

    Swift

    public let uniqueId: UUID
  • Convert to JSON string

    This function throws an error if JSON encoding process fails

    Declaration

    Swift

    @objc(toJson:)
    public func toJson() throws -> String