Fence Exited Event
@JsonClass(generateAdapter = true )
Content copied to clipboard
A FenceExited event is triggered when the device leaves a zone and an Exit trigger is registered in Canvas.
Example:
FenceExitedEvent(fenceId=92db47aa-0e42-4bd6-97c0-e309a6cc6ab3,
fenceName=Fence 0,
distance=59.337412105960226,
distanceRequired=58.119998931884766,
dwellTime=96097,
locations=[RealLocationDetails(longitude=145.2979188,
latitude=-38.0580995, horizontalAccuracy=14.53,
time=2023-11-15T01:10:39.464Z, altitude=40.70000076293945,
verticalAccuracy=20.997742, bearing=38.38074, speed=1.1501204)],
applicationState=AppState(locationPermission=ALWAYS,
batteryLevel=42, lastRuleUpdate=2023-11-15T00:48:09.350Z,
viewState=FOREGROUND_SERVICE, foregroundServiceEnabled=true),
eventTime=2023-11-15T01:10:39.510Z,
localEventTime=2023-11-15T12:10:39.510)]
Content copied to clipboard
Constructors
Link copied to clipboard
fun FenceExitedEvent( fenceId: UUID, fenceName: String, distance: Double, distanceRequired: Double, dwellTime: Long, locations: List<LocationDetails>, applicationState: AppState, eventTime: Instant = Instant.now(), localEventTime: String = eventTime.toLocalEventTimeString())
Content copied to clipboard