Package-level declarations

Types

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

Class that represents the alert status

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)

Class that represents the emergency status

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

Class that represents a 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?)

Class that represents the protection status

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

Result of an API operation

Link copied to clipboard
sealed class LRSafeRiderError : Exception

Class LRSafeRiderError and its subclasses represent the possible errors that can occur during the SDK operation

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

Represent a SDK configuration for trip detection

Link copied to clipboard
class SafeRider