DriveMotionMonitorClient
DriveMotionMonitorClient mainly provides some monitor functions for trip upload status. developers must obtain DriveMotionMonitorClient after initializing DriveMotion.
Get DriveMotionMonitorClient
1 2 3 4 5 | |
1 2 3 4 5 | |
Use DriveMotionMonitorClient
DriveMotionMonitorClient provides some monitor functions for trip upload status.
Get Upload Progress Request
the GetUploadProgressRequest will get the trip upload progress.
Build Request
1 | |
1 | |
Create a Call and execute it
Callback is a closure accepting response and error parameters.
1 2 3 4 5 6 7 8 9 10 11 12 | |
1 2 3 4 5 6 7 8 9 | |
Get Upload Success Timestamp
the GetUploadSuccessTimestampRequest will get trip upload success timestamp.
Build Request
1 | |
1 | |
Create a Call and execute it
Callback is a closure accepting response and error parameters.
1 2 3 4 5 6 7 8 9 10 11 12 | |
1 2 3 4 5 6 7 8 9 | |
Bluetooth unavailable during trip (since 3.18.0)
With edge matching enabled, the SDK can notify the app if phone Bluetooth is off, app permission is not granted, or both, after a configurable delay from trip start, while a trip is already in progress. The trip is not ended; this is for in-trip diagnostics and analytics.
On Android, this is delivered through your subclass of DriveMotionMonitorReceiver (registered in DriveMotionSettings for the monitor component). Override:
1 2 3 4 | |
1 2 3 | |
BroadcastActions.ACTION_MONITOR_BT_UNAVAILABLE_DURING_TRIP is used internally for this broadcast when the monitor receiver is configured.
Threshold configuration
Set btUnavailableTripThresholdSec on the resolved DriveMotionConfig (JSON key btUnavailableTripThresholdSec from remote DriveMotion config). The default is 120 seconds when not specified.