Get started
Last updated
Was this helpful?
Last updated
Was this helpful?
Before starting DriveKit Vehicle UI integration, make sure that you have initialized and components, especially if you have .
To add Vehicle UI module to your app, add the following line to your dependencies in your application build.gradle file:
If you have , the Vehicle UI module must also be manually initialized.
Then, to initialize the module in your app, you must call the initialization method in onCreate
method of your Application class:
To display the vehicle list to the driver, just call the following method:
To display the vehicle detail, just call the following method:
To display vehicle selection screens, just call the following method:
VehiclePickerCompleteListener
: This callback is called when VehiclePickerActivity has finished
vehicleToDelete
: If you want to replace your vehicle, you can use this parameter, it will delete and create a new one.