Get started

Prerequisite

Before starting DriveKit Vehicle integration, make sure that you have initialized DriveKit.

Integration

Get framework

DriveKit Vehicle SDK is available on CocoaPods master repo.
To access the framework in the repository, add the following lines to your Podfile:
1
target 'my-target' do
2
pod 'DriveKitVehicle'
3
end
Copied!
Then, run pod install.

TripAnalysis configuration overload

The configuration of the Vehicle SDK and its vehicles can overload the auto start configuration of the TripAnalysis SDK. To do this, you should call this method after the SDK Vehicle initialization:
1
DriveKitTripAnalysis.shared.setVehiclesConfigTakeover(vehiclesConfigTakeOver: true)
Copied!

Reset

If you need to reset Vehicle configuration (user logout for example), you can call the following method:
1
DriveKitVehicle.shared.reset()
Copied!
All data saved locally by Vehicle SDK will be erased and default configuration will be restored.
Last modified 1yr ago