LRProtection Status

data class LRProtectionStatus(val isProtectionActive: Boolean, val vehicleType: LRVehicleType?, val sessionId: String?, val hasShockAnalysis: Boolean, val alert: LRAlert?, val emergency: LREmergency?)

Immutable snapshot of the current protection status exposed by the SDK.

Constructors

Link copied to clipboard
constructor(isProtectionActive: Boolean, vehicleType: LRVehicleType?, sessionId: String?, hasShockAnalysis: Boolean, alert: LRAlert?, emergency: LREmergency?)

Properties

Link copied to clipboard
val alert: LRAlert?

Non-null when the device is in alert countdown after a detected accident.

Link copied to clipboard

Non-null when the SDK is tracking an emergency following an accident.

Link copied to clipboard

True while a shock analysis is in progress.

Link copied to clipboard

True when a protection session is active.

Link copied to clipboard

The current protection session id when active; null otherwise.

Link copied to clipboard
val vehicleType: LRVehicleType?

The current vehicle type when protection is active; null otherwise.