FenceEntered
@objcMembers
public class FenceEntered : NSObject
extension FenceEntered: JsonString
A FenceEntered event is triggered when Zone entry conditions are met and an Entry trigger is to be registered in Canvas
-
Type of this event. fenceEntered
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 -
List of crossed fences leading to this Fence Entered event
Declaration
Swift
public let crossedFences: [CrossedFence]? -
Trigger Engine of the PointSDK when this trigger happens.
Available values: [bd, native].
bdengine is the default engine running when app is running on background.nativeengine utilizes the iOS native Geo Fencing when the app is not running.
See our documentation for more details:
Declaration
Swift
public let triggerEngine: TriggerEngine -
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
View on GitHub
Install in Dash