GeoTriggerEvent

class GeoTriggerEvent(    val notificationType: NotificationType,     val appInfo: AppInfo,     val triggerEvents: List<TriggerEvent>,     val installRef: UUID,     val projectId: UUID,     val deviceInfo: DeviceInfo,     val triggerChainId: UUID,     val zoneInfo: NotificationZoneInfo) : Parcelable

An event triggered by GeoTriggering service when a trigger (zone entry or exit) happens. This event is sent from the SDK via onZoneEntryEvent

onZoneExitEvent callbacks.

Constructors

Link copied to clipboard
fun GeoTriggerEvent(    notificationType: NotificationType,     appInfo: AppInfo,     triggerEvents: List<TriggerEvent>,     installRef: UUID,     projectId: UUID,     deviceInfo: DeviceInfo,     triggerChainId: UUID,     zoneInfo: NotificationZoneInfo)

Properties

Link copied to clipboard
val appInfo: AppInfo

Application-related detail. Note that the PointSDK's customEventMetaData is included in this appInfo

Link copied to clipboard
val deviceInfo: DeviceInfo

Device information e.g. model, os, osVersion

Link copied to clipboard
val installRef: UUID

The installation reference of this Point SDK enabled App.

Link copied to clipboard
val notificationType: NotificationType

Notification Type of this event. For GeoTriggerEvent events, can be either ENTRY or EXIT

Link copied to clipboard
val projectId: UUID

The projectId that the SDK was initialized with.

Link copied to clipboard
val triggerChainId: UUID

The unique ID of the trigger chain. A trigger chain includes an Entry event (if zone setting in Canvas is Exit-disabled), or a pair of Entry and Exit events (if zone setting in Canvas is Exit-enabled).

Link copied to clipboard
val triggerEvents: List<TriggerEvent>

A list of trigger events included in this GeoTriggerEvent.

Link copied to clipboard
val zoneInfo: NotificationZoneInfo

Details of the zone triggering the event.

Functions

Link copied to clipboard
fun entryEvent(): TriggerEvent.FenceEnteredEvent?

Find the trigger event that was the zone entry.

Link copied to clipboard
fun exitEvent(): TriggerEvent.FenceExitedEvent?

Find the trigger event that was the zone exit. Will be null for ENTRY

Link copied to clipboard
fun toJson(): String

Convert this object to JSON.

Link copied to clipboard
open override fun toString(): String

Override toString to present as JSON.

Inherited functions

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