TriggerEvent

sealed class TriggerEvent : Parcelable

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class FenceEnteredEvent(    val fenceId: UUID,     val fenceName: String,     val locations: List<LocationDetails>,     val crossedFences: List<CrossedFence>,     val applicationState: AppState,     val eventTime: Instant = Instant.now(),     val localEventTime: String = eventTime.toLocalEventTimeString()) : TriggerEvent, FenceEntered

A FenceEntered event is triggered when Zone entry conditions are met and an Entry trigger is registered in Canvas.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class FenceExitedEvent(    val fenceId: UUID,     val fenceName: String,     val distance: Double,     val distanceRequired: Double,     val dwellTime: Long,     val locations: List<LocationDetails>,     val applicationState: AppState,     val eventTime: Instant = Instant.now(),     val localEventTime: String = eventTime.toLocalEventTimeString()) : TriggerEvent, FenceExited

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

Link copied to clipboard
enum Type : Enum<TriggerEvent.Type>

Properties

Link copied to clipboard
open val applicationState: AppState
Link copied to clipboard
open val eventTime: Instant
Link copied to clipboard
open val eventType: TriggerEvent.Type
Link copied to clipboard
open val localEventTime: String

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Inheritors

Link copied to clipboard
Link copied to clipboard