Quick Start

Get the MOVE SDK running

Initializing the MOVE SDK

To be able to use the SDK, several permission need to be granted. This is described in Permission Handling.

Create SDK instance

Start by creating a SDK instance using the Move.Builder.

circle-info

It is recommended that the required permissions are requested before initializing the SDK.

import io.dolphin.move.MoveSdk
...
var sdk: MoveSdk = MoveSdk.Builder()
    .transportModes(ModeOfTransport.DRIVING)
    .authentication(MoveAuth.Auth(productId,"contractId","accessToken","refreshToken"))
    .init(context)
circle-info

You need to replace productId, contractId, accessToken, and refreshToken with your own values.

circle-exclamation

The initialization of the MoveSdk is asynchronous and you will be notified regarding state changes with the MoveStateListener. The init can be called on the main thread or even on background threads. On successful initialization the MoveSdkState changes to READY.

Now that there is an instance of the SDK, the detection may be started with startAutomaticDetection(), which should lead to an RUNNING state of the MoveSdk.

circle-exclamation

Full code example

Last updated