Quick Start
Getting Started / iOS
Overall Code
import DolphinMoveSDK
#if canImport(DolphinMoveSDKHealth)
import DolphinMoveSDKHealth
#endif
func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
#if canImport(DolphinMoveSDKHealth)
sdk.enable(healthKit: MoveSDKHealth.shared)
#endif
MoveSDK.shared.setSDKStateListener { sdkState in
switch state {
case .uninitialized:
print("/* SDK uninitialized*/")
break
case .ready:
print("/* SDK initialised and ready to start the service*/")
break
case .running:
print("/* SDK Started Detection*/")
break
}
}
MoveSDK.shared.setAuthStateUpdateListener { authState in ... }
MoveSDK.shared.setTripStateListener { tripState in ... }
MoveSDK.shared.setServiceFailureListener { failures in ... }
MoveSDK.shared.setServiceWarningListener { warnings in ... }
MoveSDK.shared.initialize(launchOptions: launchOptions)
}SDK Authorization and Setup
Authentication Invalidation
SDK State
SDK Initialization
Warnings and Errors
WORKING SAMPLE CODE
Last updated