MoveConfig

MOVE Models

The MOVE 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 MOVE SDK.

The host app can only configure its MOVE SDK services to the set or subset of services subscribed by the MOVE project ID in the MOVE dashboard. You will get a failure list with MoveError.Unauthorized error if services are not configured.


   enum MoveDetectionService {
        case Driving([DrivingService])
        case Walking([WalkingService])
        case Cycling
        case Places
        case PublicTransport
        case PointsOfInterest
        case AutomaticImpactDetection
        case AssistanceCall
    }
     
    enum DrivingService {
        case DistractionFreeDriving
        case DrivingBehaviour
    }
    
    enum WalkingService {
        case Location
    }
    
    var moveDetectionServices: List<MoveDetectionService>

Please check also the platform specific configuration pages (Android / iOS).

MoveConfig

DetectionServices

List of required modes of transportation to be detected.

driving

Detect the driving activity.

cycling

Detect the cycling activity.

walking

Detect the walking activity.

places

Detect places where user spent time.

publicTransport

Detect public transport trips

pointsOfInterest

Monitor and track points of interest

automaticImpactDetection

Detect impacts while driving or as stand alone service.

assistanceCall

Enable assistance call.

DrivingServices

List of required driving services to be detected.

distractionFreeDriving

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

drivingBehavior

Detect the user's driving behavior during a trip.

WalkingServices

location

Detects locations in background while walking.

Each MoveConfig requires one or more permissions (see for Android and iOS). Individual MOVE SDK services will not function without the required permissions. Check MoveSDKState for more details.

MoveConfig related APIs

setup()

Setup the MOVE SDK with passing MoveAuth and MoveConfig

Last updated

#70: add MoveSdkAndroidConfig model

Change request updated