Checking Trip Status

In both automatic and controlled detection modes, you can check the SDK if a trip is ongoing at that moment.

Sentiance.shared.isTripOngoing(ofType: .external)

The method takes a SENTTripType parameter to specify the type of trip you are interested in. You can pass SDK or external.

Trip types are classified as follows:

  • External: a trip that has been started by your app.

  • SDK: a trip that has been started by the SDK based on automatic detections.

Last updated