Fence Entered Event
@JsonClass(generateAdapter = true )
Content copied to clipboard
A FenceEntered event is triggered when Zone entry conditions are met and an Entry trigger is registered in Canvas.
Example:
FenceEnteredEvent(fenceId=92db47aa-0e42-4bd6-97c0-e309a6cc6ab3,
fenceName=Fence 0,
locations=[RealLocationDetails(longitude=145.2976349,
latitude=-38.0591382, horizontalAccuracy=18.513,
time=2023-11-15T01:09:03.347Z, altitude=41.400001525878906,
verticalAccuracy=9.572424, bearing=26.452831, speed=1.4476475)],
applicationState=AppState(locationPermission=ALWAYS,
batteryLevel=43, lastRuleUpdate=2023-11-15T00:48:09.350Z,
viewState=FOREGROUND_SERVICE, foregroundServiceEnabled=true),
eventTime=2023-11-15T01:09:03.412Z,
localEventTime=2023-11-15T12:09:03.412),
Content copied to clipboard
Constructors
Link copied to clipboard
fun FenceEnteredEvent( fenceId: UUID, fenceName: String, locations: List<LocationDetails>, crossedFences: List<CrossedFence>, applicationState: AppState, eventTime: Instant = Instant.now(), localEventTime: String = eventTime.toLocalEventTimeString())
Content copied to clipboard