addTripMetadata

abstract fun addTripMetadata(@NonNull metadata: Map<String, String>): Boolean

Adds metadata to an external ongoing trip. This metadata is then uploaded to the Sentiance Cloud Platform, and made available in backend API query results and offloads. This method can be called multiple times during the trip.

Return

False if there is no ongoing external trip, or null metadata was passed.

Parameters

metadata

A map of metadata pertaining to the ongoing trip, which will be saved along with the trip data, and made available in backend API query results and offloads

Throws

if the SDK is not initialized.