Package-level declarations

Types

Link copied to clipboard
data class LRAlert(val alertStartTime: Long, val alertDuration: Int)

Alert countdown state following a detected accident.

Link copied to clipboard
data class LREmergency(val emergencyId: String, val isEmergencySending: Boolean, val hasEmergencySendingFailed: Boolean, val isEmergencySent: Boolean, val isEmergencyCanceled: Boolean, val isEmergencyEnded: Boolean)

Emergency tracking state following a confirmed alert.

Link copied to clipboard
data class LRNotification(val notification: Notification, val notificationId: Int, val channelId: String = PROTECTION_CHANNEL_ID)

Wrapper for a foreground notification used by the SDK.

Link copied to clipboard
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.

Link copied to clipboard
data class LRResult(val success: Boolean, val error: LRSafeRiderError? = null, val message: String? = null)

Result of a SafeRider operation.

Link copied to clipboard
sealed class LRSafeRiderError : Exception

Set of errors that can occur while using the SDK.

Link copied to clipboard
data class LRTripDetectionCurrentConfig(val isEnabled: Boolean, val isMuted: Boolean, val vehicleType: LRVehicleType? = null)

Current trip detection configuration snapshot.

Link copied to clipboard
class SafeRider

Entry point of the SafeRider SDK.