Dolphin MOVE SDK
SDK
1.x
1.x
  • Introduction
  • MOVE Services
  • MOVE SDK
    • Getting Started
      • MOVE Dashboard
      • Android
        • Installation
        • Quick Start
      • iOS
        • Installation
        • Quick Start
      • React Native
    • API Interface
      • Android
        • Initialization
        • Services
      • iOS
        • Initialization
        • Services
      • React Native
        • Initialization
        • Services
    • Models
      • MoveAuth
      • MoveConfig
      • MoveConfigurationError
      • MoveDeviceStatus
      • MoveSDKState
      • MoveTripState
      • MoveAuthState
      • Listeners/Callbacks
    • Appendix
      • Android
        • Token refresh
        • Permission Handling
        • Battery optimization
        • Notification Management
      • iOS
        • Permissions Handling
        • App Store
  • MOVE Backend
    • MOVE Timeline
    • MOVE State
    • MOVE Last Location
    • MOVE Generic Notifier
    • Open Api Specification
  • Changelog
    • Android
    • iOS
  • Data privacy (GDPR)
Powered by GitBook
On this page
  1. MOVE SDK
  2. Models

MoveConfig

PreviousMoveAuthNextMoveConfigurationError

Last updated 3 years ago

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 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 .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
     }
struct MoveConfig {
    enum TimelineDetectionService {
        case driving
        case bicycle
        case walking
        case places
        case publicTransport
    }
     
    enum DrivingService {
        case dfd
        case behaviour
    }
 
    enum OtherService: Int, Codable {
        case poi
    }
 
    var timelineDetectionServices: [TimelineDetectionService]
    var drivingServices: [DrivingService]
    var otherServices: [OtherService]
}
export type RnDolphinConfig = {
  modesOfTransport: ModeOfTransport[],
  drivingServices: DrivingService[],
  walkingServices: WalkingService[],
  otherServices: OtherService[],
};

export type DrivingService = 'DistractionFreeDriving' | 'DrivingBehaviour';
export type WalkingService = 'Location';
export type OtherService = 'POI';
export type ModeOfTransport = 'DRIVING' | 'BICYCLE' | 'WALKING';

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

MoveConfig-related APIs

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

Pass the required configurations on intialization.

For Android check the page

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

(A)

(iOS)

MoveConfig
MoveConfigurationError
Initialization
MoveConfig
Android
iOS
MoveSDKState
MoveSDKState
Move.Sdk.Builder
Initialization