Skip to content

Autoliv Datalogger Core SDK

The core SDK is designed to contain all the multiplatform functionalities by the datalogger.

Usage

The library can be used by adding com.autoliv.datalogger:datalogger-core to theGradle build dependencies.

Groovy

dependencies {
    implementation 'com.autoliv.datalogger:datalogger-core:0.0.2'
}

Kotlin

dependencies {
    val dataloggerVersion: String by project
    implementation("com.autoliv.datalogger:datalogger-core:${dataloggerVersion}")
}

Kotlin Code Examples

The functionalities of the datalogger are exposed using the DataloggerClient Below is an example to get all the trips, sorted by the startTime column.

import com.autoliv.datalogger.client.DataloggerClient

val client = DataloggerClient("subscriptionName", "subscriptionCode") // (1)
val trips = client.trip.getSeveral(sortBy="startTime")
  1. The subscription name and subscription code are credentials used to access the cloud-based logger