onDriveEnd

abstract fun onDriveEnd(context: Context, estimatedDriveInfo: EstimatedDriveInfo?)

Called when the Fairmatic SDK ends a drive. The drive may have been manually started and ended by the application or auto detected by the SDK.

Parameters

context
  • The context in which the receiver is running.

estimatedDriveInfo
  • Information about the drive. This contains info about the drive that is available immediately at the end of a drive. Additional or improved info about the drive will be provided via the FairmaticBroadcastReceiver.onDriveAnalyzed callback when the drive is completely analyzed. Applications should update everything received here with values from AnalyzedDriveInfo.