Get started
Last updated
Was this helpful?
Last updated
Was this helpful?
Before starting DriveKit Timeline UI integration, make sure that you have initialized and modules.
The Timeline UI module is available on Cocoapods master repo.
To access the framework in the repository, add the following lines to your Podfile:
Then, run pod install.
If you have , the Timeline UI module must also be manually initialized. In the application's AppDelegate file, import DriveKitDriverDataTimelineUI
:
Then, to initialize Timeline UI module in your app, you must call the initialization method in didFinishLaunchingWithOptions
method of your AppDelegate:
You can select which scores you want to display on the main screen as well as the scores ordering, by calling the following method:
Default and accepted values:
[ .safety
, .ecoDriving
, .distraction
, .speeding
]
For .distraction
and .speeding
scores, make sure that the services are activated on your DriveQuant account or the SDK will filter them out and they will not be displayed in the UI even if you add them here.