Automatic Detections with Forced Trips
Starting a Trip
Sentiance.shared.startTrip(metadata: metadata, transportModeHint: hint) { result, error in
}sentiance.startTrip(metadata, transportModeHint)
.addOnSuccessListener { startTripResult ->
// The trip was successfully started.
}
.addOnFailureListener { startTripError ->
// Something prevented the trip to start.
// Check the status object for more details.
}Stopping a Trip
Sentiance.shared.stopTrip { result, error in
}sentiance.stopTrip()
.addOnSuccessListener { stopTripResult -> }
.addOnFailureListener { stopTripError -> }Last updated