MoveServiceWarning
MOVE Models
data class MoveServiceWarning(
val service: MoveDetectionService,
val warnings: List<MoveWarning>
)
sealed class MoveWarning {
ActivityPermissionMissing,
BackgroundLocationPermissionMissing,
BatteryOptimization,
BluetoothPermissionMissing,
EnergySaver,
GoEdition,
GpsOff,
LocationMode,
LocationPowerMode,
MockProvider,
MockProviderLocation,
NoSim,
Offline,
PlayServicesMissing,
Rooted
}
struct MoveServiceWarning {
enum Reason {
case missingPermission([MovePermission])
}
var service: MoveConfig.DetectionService
var reason: Reason
}
export declare type ErrorReasons = 'BACKGROUND_LOCATION_PERMISSION_MISSING' | 'LOCATION_PERMISSION_MISSING' | 'MOTION_PERMISSION_MISSING' | 'BATTERY_OPTIMIZATION' | 'BATTERY_PERMISSION_MISSING' | 'BLUETOOTH_PERMISSION_MISSING';
export declare type ErrorListService = 'DRIVING[]' | 'DRIVING[DRIVING_BEHAVIOUR]' | 'DRIVING[DISTRACTION_FREE_DRIVING]' | 'DRIVING[DRIVING_BEHAVIOUR, DISTRACTION_FREE_DRIVING]' | 'DRIVING[DISTRACTION_FREE_DRIVING, DRIVING_BEHAVIOUR]' | 'WALKING[]' | 'WALKING[LOCATION]' | 'CYCLING' | 'PUBLIC_TRANSPORT' | 'AUTOMATIC_IMPACT_DETECTION' | 'POINTS_OF_INTEREST';
export declare type ErrorListItem = {
reasons: Array<ErrorReasons>;
service?: ErrorListService;
};
export declare type ErrorListType = Array<ErrorListItem>;
Field
service
reason
List of optional MoveWarnings
Last updated