Search…
Checking Trip Status
During both automatic and controlled detection modes, you can check the SDK if a trip is ongoing at that moment.
iOS
Android
1
[[SENTSDK sharedInstance] isTripOngoing: tripType];
Copied!
The method takes a SENTTripType parameter to specify the type of trip you are interested in. You can pass SENTTripTypeSDK or SENTTripTypeExternal.
1
boolean isTripOngoing = isTripOngoing(tripType);
Copied!
The method takes a TripType parameter to specify the type of trip you are interested in. You can pass any one of EXTERNAL_TRIP, SDK_TRIP, and ANY to query the trip status.
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.
Copy link