MoveOptions

MOVE Models

MoveOptions class since MOVE SDK v2.3

data class MoveOptions(
    val motionPermissionRequired: Boolean = false,
    val backgroundLocationPermissionMandatory: Boolean = false,
    val overlayPermissionMandatory: Boolean = true,
    val useBackendConfig: Boolean = false,
    val deviceDiscovery: DeviceDiscovery? = null,
)

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)

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 if you want to change MOVE features without publishing a new app release.

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