MoveConfig

The SDK offers to detect different modes of transport and driving services. The host app can configure which driving services to activate and modes of transport to detect by setting the MoveConfig object when initializing the SDK.

The host app must only configure its SDK services to the set or subset of services subscribed by the SDK product id of this host app. The SDK initialization will fail and complete with MoveConfigurationError.configMismatch otherwise.

Android does not provide a config object, 
but uses various Move.Builder methods for this

   enum TimelineDetectionService {
        case DRIVING
        case BICYCLE
        case WALKING
        case PLACES
        case PUBLIC_TRANSPORT
    }
     
    enum DrivingService {
        case DistractionFreeDriving
        case DrivingBehaviour
    }
 
    enum OtherService {
	case PointsOfInterest
     }

For Android check the Initialization page

MoveConfig

TimelineDetectionServices

List of required modes of transportation to be detected.

driving

Detect the driving activity.

bicycle

Detect the cycling activity.

walking

Detect the walking activity.

places

Detect places where user spent time.

publicTransport

Detect public transport trips

DrivingServices

List of required driving services to be detected.

dfd

Detect the user's distraction-free driving duration during a trip.

behavior

Detect the user's driving behavior during a trip.

OtherServices

Other SDK services

poi

Monitor and track points of interest

Each MoveConfig requires one or more permissions (see for Android and iOS). The SDK services will not start and MoveSDKState will transit to.permissionMissingerror state in case one or more required permissions were missing. Check MoveSDKState for more details.

MoveConfig-related APIs

Android does not provide a config object, but uses the Builder methods for this.

Pass the required configurations on intialization.

Last updated