FenceDwell
@objcMembers
public class FenceDwell : NSObject
extension FenceDwell: JsonString
A FenceDwell event is triggered when Zone dwell conditions are met and a Dwell trigger is enabled in Canvas for the zone
-
Type of this event. fenceDwell
Declaration
Swift
public let eventType: EventType -
Time when the dwell event was triggered
Declaration
Swift
public let eventTime: Date -
Name of the fence
Declaration
Swift
public let fenceName: String -
Unique identifier of the last crossed fence leading up to the trigger event
Declaration
Swift
public let fenceId: UUID -
The Location Update associated with the dwell 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].
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 -
Time zone identifier of the device when the event occurred
Declaration
Swift
public let timeZoneIdentifier: String -
Unique identifier for this dwell event
Declaration
Swift
public let uniqueId: UUID -
Dwell time from entry to dwell time trigger, in milliseconds
Declaration
Swift
public let calculatedDwellTime: TimeInterval -
Dwell time threshold configured in backend, in milliseconds
Declaration
Swift
public let dwellThreshold: TimeInterval -
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