MoveOptions
MOVE Models
data class MoveOptions(
val motionPermissionRequired: Boolean = false,
val backgroundLocationPermissionMandatory: Boolean = false,
val overlayPermissionMandatory: Boolean = true,
val useBackendConfig: Boolean = false,
val deviceDiscovery: DeviceDiscovery? = null,
)public class MoveOptions: Codable {
var motionPermissionMandatory: Bool
var backgroundLocationPermissionMandatory: Bool
var useBackendConfig: Bool
var deviceDiscovery: DeviceDiscovery
}export declare type MoveSdkOptions = {
motionPermissionMandatory?: boolean;
backgroundLocationPermissionMandatory?: boolean;
overlayPermissionMandatory?: boolean;
useBackendConfig?: boolean;
deviceDiscovery?: MoveSdkDeviceDiscovery;
};import 'package:movesdk/io/dolphin/move/move_options.dart';class MoveOptions {
bool? motionPermissionMandatory;
bool? backgroundLocationPermissionMandatory;
bool? useBackendConfig;
DeviceDiscoveryOptions? deviceDiscovery;
}MoveOptions
Type
Default
motionPermissionRequired (Android) / motionPermissionMandatory (iOS)
Boolean
false
Pass true if you want the motion permission (activity recognition) to be mandatory for driving service.
backgroundLocationPermissionMandatory (Since MOVE SDK v2.6)
Boolean
false
Pass true if you want the background location permission to be mandatory for driving service.
ANDROID ONLY:
overlayPermissionMandatory (Since MOVE SDK v2.6.9)
Flutter: overlayPermissionMandatory is not configurable via Flutter MoveOptions. The default is true.
Boolean
true
Pass false if you don't want the overlay permission mandatory for driving service. Attention: in this case the device must be equipped with a gyroscope!
useBackendConfig (Since MOVE SDK v2.5)
Boolean
false
Pass true to use the MOVE Dashboard configuration instead of the local MoveConfig. When enabled, the local MoveConfig passed in setup() is ignored and the backend configuration takes precedence.
deviceDiscovery
null
Create / pass a DeviceDiscovery object if you want to have more control over the BDD - Device Discovery feature.
MoveOptions related
updateConfig(...) (Android) / update(...) (iOS)
Last updated