Get started

Prerequisite

Before starting DriveKit Vehicle UI integration, make sure that TripAnalysis and CommonUI modules are initialized, especially if you have disabled the SDK auto-initialization.

Integration

To add the Trip Analysis UI module to your app, add the following lines to your dependencies in your application build.gradle file:

dependencies {
   implementation 'com.drivequant.drivekit:drivekit-trip-analysis-ui:$drivekitui_version'
}

Replace $drivekitui_version with the DriveKit version you are using in your app

On a Github repository, you can find a demo app and the source code of Permissions Utils UI that you can use as an example.

Initialization

If you have disabled the SDK auto-initialization, the Trip Analysis UI module must also be manually initialized.

Then, to initialize the Trip Analysis UI module in your app, you must call the initialization method in onCreate method of your Application class:

class MyApplication : Application() {
   override fun onCreate() {
      super.onCreate()
      DriveKit.initialize()
      DriveKitTripAnalysis.initialize(...)
      DriveKitUI.initialize()
      DriveKitTripAnalysisUI.initialize()
      (…)
   }
}

Last updated