Automatic Detections with Forced Trips
Starting a Trip
[[SENTSDK sharedInstance] startTrip:metadata
transportModeHint:SENTTransportModeUnknown
success:^{
}
failure:^(SENTSDKStatus *status) {
}];startTrip(metadata, transportModeHint, new StartTripCallback() {
@Override
public void onSuccess () {
// The trip was successfully started.
}
@Override
public void onFailure (@Nullable SdkStatus sdkstatus) {
// Something prevented the trip to start.
// Check the status object for more details.
}
});Stopping a Trip
[[SENTSDK sharedInstance] stopTrip:^{
// successfully stopped the trip
} failure:^(SENTSDKStatus *status) {
// stopping the trip failed
}];stopTrip(new StopTripCallback() {
@Override
public void onSuccess () {
}
@Override
public void onFailure (@Nullable SdkStatus sdkstatus) {
}
});Last updated