Migration Guide 2.22
Migration SDK from old versions
This section will provide a detailed description of the API changes during the upgrade. We strongly recommend reading this documentation when upgrading the SDK version to understand the API differences and update your API calls accordingly based on the version disparities.
Migration to version 2.22.x
The SDK updates to enhance functionality.
Replace withVin
with withAsset
Replaced withVin
with withAsset
of APIs in below APIs involoved by this change list. You should provide both assetId
and assetContext
for the new API, assetContext
is in a enumation type including CAR
type and GLOBAL
, the assetId
means VIN when assetContext
is CAR
type, when GLOBAL
, the assetId
means channel client id.
APIs involoved by this change:
- Get aggregated safety score
- Get cumulative safety score
- Get aggregated score
- Get cumulative score
- Get trips
- Get trip detail
- Get latest trip detail
- Replace vehicle peripheral
- Link vehicle to peripheral
Add IDriveMotionConfigDelegate
interface.
Added a new interface named IDriveMotionConfigDelegate
, the implementation of which could be provided via DriveMotionSettings
on DriveMotion SDK initialization. With the new interface, you can provide a TimeRange
by implementing method TimeRange getReprocessTripTimeRange()
to DriveMotion SDK for reprocessing past unmatched trips accordingly.