Quick Start
Get the MOVE SDK running
Last updated
// Initialize sdk
moveAuth?.let {
val moveSdk= MoveSdk.Builder()
.timelineDetectionService(TimelineDetectionService.DRIVING, TimelineDetectionService.WALKING, TimelineDetectionService.BICYCLE)
.drivingServices(DrivingService.DistractionFreeDriving, DrivingService.DrivingBehaviour)
.recognitionNotification(recognitionNotification)
.tripNotification(drivingNotification)
.sdkStateListener(sdkStateListener)
.authStateUpdateListener(authListener)
.tripStateListener(tripStateListener)
.authentication(moveAuth)
.init(applicationContext);
...
...
// in your MoveSdk.StateListener
onStateChanged(sdk: MoveSdk, state: MoveSdkState) {
val state = moveSdk.getSdkState()
if (state is Ready) {
moveSdk.startAutomaticDetection()
}
}