Dolphin MOVE SDK
2.x
2.x
  • Introduction
  • MOVE Services
  • MOVE SDK
    • Getting Started
      • MOVE Dashboard
        • Access Control
        • Configuration
        • Timeline
        • Points of Interest
      • Android
        • Installation
        • Quick Start
      • iOS
        • Installation
        • Quick Start
        • Troubleshooting
      • React Native
      • Flutter
      • Move SDK CLI
    • API Interface
      • Android
        • Initialization
        • Services
      • iOS
        • Initialization
        • Setup
        • Services
      • React Native
        • Components
        • Initialization
        • Services
      • Flutter
        • Initialization
        • Services
    • Models
      • Listeners/Callbacks
      • MoveAssistanceCallStatus
      • MoveAuth
      • MoveAuthError
      • MoveAuthResult
      • MoveAuthState
      • MoveConfig
      • MoveConfigurationError
      • MoveDevice
      • MoveDeviceStatus
      • MoveGeocodeError
      • MoveHealthItem
      • MoveHealthScore
      • MoveOptions
        • DeviceDiscovery
      • MoveSdkState
      • MoveSdkAndroidConfig
      • MoveTripState
      • MoveScanResult
      • MoveServiceFailure
      • MoveServiceWarning
      • MoveShutdownResult
    • Appendix
      • Token refresh
      • Android
        • Permission Handling
          • Permission Overview
          • Runtime Permissions
        • Battery optimization
        • Notification Management
      • iOS
        • Permissions Handling
        • App Store
      • React Native
        • Permission Handling
  • MOVE Backend
    • MOVE Backend
      • MOVE Admin API
      • MOVE TIMELINE API
      • MOVE State API
      • MOVE Last Location API
    • MOVE Generic Notifier
    • MOVE Assistance Notifier
    • Example requests
  • FAQ
  • Changelog
    • Android
    • iOS
    • React
    • Flutter
    • Backend
  • Data privacy (GDPR)
Powered by GitBook
On this page
  1. MOVE SDK
  2. Models

MoveConfig

MOVE Models

PreviousMoveAuthStateNextMoveConfigurationError

Last updated 11 months ago

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 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 . You will get a failure list with error if services are not configured.

data class MoveConfig(
    var moveDetectionServices: List<MoveDetectionService> ...
)

...

sealed class MoveDetectionService {

    class Driving(val drivingServices: List<DrivingService>? = null) : MoveDetectionService()
    object Cycling : MoveDetectionService()
    class Walking(val walkingServices: List<WalkingService>? = null) : MoveDetectionService()
    object Places : MoveDetectionService()
    object PublicTransport : MoveDetectionService()
    object PointsOfInterest : MoveDetectionService()
    object AutomaticImpactDetection : MoveDetectionService()
    object AssistanceCall : MoveDetectionService()

}
    
struct MoveConfig {
    enum DetectionService {
        case driving([DrivingService])
        case cycling
        case walking([WalkingService])
        case places
        case publicTransport
        case pointsOfInterest
        case automaticImpactDetection
        case assistanceCall
    }

    enum DrivingService {
        case drivingBehavior
        case distractionFreeDriving
        case deviceDiscovery
    }
    
    enum WalkingService {
        case location
    }
 
    enum OtherService {
        case pointsOfInterest
    }
 
    var detectionServices: [TimelineDetectionService]
}
export type MoveSdkConfig = {
  timelineDetectionServices: TimelineDetectionService[];
  drivingServices: DrivingService[];
  walkingServices: WalkingService[];
};
export type DrivingService = 'DISTRACTION_FREE_DRIVING' | 'DRIVING_BEHAVIOUR' | 'DEVICE_DISCOVERY';
export type WalkingService = 'LOCATION';
export type OtherService = 'POINTS_OF_INTEREST';
export type TimelineDetectionService =
  | 'DRIVING'
  | 'CYCLING'
  | 'WALKING'
  | 'PUBLIC_TRANSPORT'
  | 'AUTOMATIC_IMPACT_DETECTION'
  | 'ASSISTANCE_CALL'
  | 'POINTS_OF_INTEREST';
import 'package:movesdk/io/dolphin/move/move_detection_service.dart';
enum MoveDetectionService {
  assistanceCall,
  automaticImpactDetection,
  cycling,
  driving,
  distractionFreeDriving,
  drivingBehaviour,
  deviceDiscovery,
  places,
  pointsOfInterest,
  publicTransport,
  walking,
  walkingLocation,
}

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.

deviceDiscovery

Scanning for registered devices during a trip. (since MOVE SDK v2.4)

WalkingServices

location

Detects locations in background while walking.

MoveConfig related

setup(...)

Setup the MOVE SDK with passing MoveAuth and MoveConfig

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

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

MoveConfig
MOVE dashboard
MoveError.Unauthorized
Android
iOS
MoveConfig
Android
iOS
MoveSDKState