POIAlertItem

data class POIAlertItem(val customAlert: CustomPOIAlert, val id: Int, val status: AlertStatus, val timeToDest: Int, val distToDest: Int, val alertPos: GeoPoint, val form: Form?, val classID: Int, val dist: Int, val time: Int) : AlertItem

POI alert item containing real-time information about a POI alert.

Remaps TB_POI_ALERT_ITEM class from coresdk.

Constructors

Link copied to clipboard
constructor(startLimit: Int, validLimit: Int, startIsTime: Boolean, validIsTime: Boolean, isEnabled: Boolean, repeatAlert: Boolean, internalRef: Long, id: Int, status: Int, timeToDest: Int, distToDest: Int, alertPosX: Double, alertPosY: Double, form: Form?, classID: Int, dist: Int, time: Int)

JNI constructor used by native code. DO NOT MODIFY - Used for native bridge instantiation.

constructor(customAlert: CustomPOIAlert, id: Int, status: AlertStatus, timeToDest: Int, distToDest: Int, alertPos: GeoPoint, form: Form?, classID: Int, dist: Int, time: Int)

Properties

Link copied to clipboard

Position of the alert item on the route.

Link copied to clipboard

The corresponding POI's class ID.

Link copied to clipboard
open override val customAlert: CustomPOIAlert

The associated custom POI alert configuration.

Link copied to clipboard
val dist: Int

Current distance in meters between the vehicle and the alert.

Link copied to clipboard

Distance in meters from the alert's location to the route's destination.

Link copied to clipboard
val form: Form?

The corresponding POI's form geometry.

Link copied to clipboard
open override val id: Int

Unique alert item ID.

Link copied to clipboard
open override val status: AlertStatus

Current status of the alert item.

Link copied to clipboard
val time: Int

Current delay in seconds before reaching the alert.

Link copied to clipboard

Time in seconds from the alert's location to the route's destination.