Skip to content

Migration Guide 2.26

Migration SDK from Old Versions

This section provides a detailed description of API changes introduced in recent SDK upgrades.
We strongly recommend reading this documentation when upgrading the SDK version to understand the differences and update your API calls accordingly.

Migration to Version 2.26.0

GetCumulativeSafetyScore Add scoreBaseTime

A parameter named scoreBaseTime has been added to control the calculation of the CumulativeSafetyScore based on the start period of trip collection.

Please refer to the sample code below for creating a valid request:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
DriveMotionService.driveMotionAnalyticsClient
    .withConnectionMode(ConnectionMode.CLOUD)
    .getCumulativeSafetyScoreRequest()
    .withStartDate(#startDate#)
    .withEndDate(#endDate#)
    .withScoreBaseTime(#scoreBaseTime#)
    .withAsset(#assetId#, #assetContext#)
     
    .build()
    .execute(object : Callback<GetCumulativeSafetyScoreResponse> {
    override fun onSuccess(cumulativeSafetyScoreResponse: GetCumulativeSafetyScoreResponse) {
        // Do something
    }

    override fun onFailure(throwable: Throwable) {
        // Do something
})

GetTripDetail Remove isPredict

The GetTripDetail API response has removed the isPredict attribute.