Trip Manager
enableImsTripManager
enableImsTripManager
Description
Enable the IMS Trip Manager. Trip detection and recording do not happen until you explicitly enable it at least once. Use this method to enable trip detection, recording, and trip file upload.
Returns
Promise<any>
: A promise that resolves when the operation is complete.
Usage example:
disableImsTripManager
disableImsTripManager
Description
Disable the IMS Trip Manager. Use this method to stop, such as when the user logs out.
Returns
Promise<any>
: A promise that resolves when the operation is complete.
Usage example:
startTrip
startTrip
Description
Start a trip. The trip detection manager must be enabled before the trip recorder can be started or stopped programmatically. The start command has no effect if the recorder is already started (or if trip detection is disabled).
Returns
Promise<any>
: A promise that resolves when the trip starts.
Usage example:
stopTrip
stopTrip
Description
Stop the current trip. The trip detection manager must be enabled before the trip recorder can be started or stopped programmatically. The stop command has no effect if the recorder is not already running.
If you have specified no validator (AndroidTripValidator.PHONE and/or AndroidTripValidator.DEVICE), then, once started, the trip recorder will continue recording indefinitely until you issue the stop command. If you have specified at least one validator, trip recording will stop automatically using the validator, or when you issue the stop command, whichever comes first.
Returns
Promise<any>
: A promise that resolves when the trip stops.
Usage example:
addTripStatusListenerAndroid
addTripStatusListenerAndroid
Description
Add a listener for trip status updates on Android. The application can register a listener to be informed of important lifecycle events such as trip detection enabled, recording started, and/or failures. This can be done by adding a listener while the app is running.
Returns
Promise<any>
: A promise that resolves when the listener is added.
Usage example:
removeTripStatusListenerAndroid
removeTripStatusListenerAndroid
Description
Remove the trip status listener on Android.
Returns
Promise<any>
: A promise that resolves when the listener is removed.
Usage example:
setStatusHandlerIos
setStatusHandlerIos
Description
Set a status handler on iOS.
Returns
Promise<any>
: A promise that resolves when the status handler is set.
Usage example:
removeStatusHandlerIos
removeStatusHandlerIos
Description
Remove the status handler on iOS.
Returns
Promise<any>
: A promise that resolves when the status handler is removed.
Usage example:
uploadAllTripDataIos
uploadAllTripDataIos
Description
Upload all trip data on iOS, including any log files. This might be useful to call to ensure no data files or logs are lingering.
Returns
Promise<any>
: A promise that resolves when the trip data is uploaded.
Usage example:
tripsToUploadIos
tripsToUploadIos
Description
Get the amount of trips to upload on iOS.
Returns
Promise<any>
: A promise that resolves with the list of trips.
Usage example:
deleteAllTripDataIos
deleteAllTripDataIos
Description
Delete all persisted trip data and logs on iOS. This might be useful in the event that the user has been logged out.
Returns
Promise<any>
: A promise that resolves when the trip data is deleted.
Usage example:
getFileLocationIos
getFileLocationIos
Description
Return file location used by the SDK on iOS.
Returns
Promise<any>
: A promise that resolves with the file location.
Usage example:
Last updated