startDriveWithPeriod2

fun startDriveWithPeriod2(context: Context, trackingId: String, callback: FairmaticOperationCallback?)

Start Fairmatic insurance period 2 in the SDK. A manual trip with the given trackingId will be started immediately. The entire duration in this period will be recorded as a single trip. If period 2 is already in progress with the same trackingId, this call will be a no-op.

Parameters

context

Context - Application context

trackingId
  • an identifier which allows identifying this drive uniquely. This identifier must be unique for this user. It may not be null or a empty string. It will be truncated to 64 characters if it is longer than 64 characters. Passing invalid trackingId is an error isValidInputParameter.

callback

FairmaticOperationCallback - called with the result of the operation