CarDataManager
Functions
Link copied to clipboard
Gets latest vehicle data from Connected Car Data API
Link copied to clipboard
fun startDataRequestsRoutine(vehicleId: String, requestsDelay: Long, errorRetryDelay: Long?, result: LastDataResultListener, onRoutineError: (error: Error) -> Unit)
Starts a routine that will request vehicle's last data at a defined frequency. The authorization token is automatically handled. If the request to get the authorization token fails with an auth failure error, the routine is stopped.
Link copied to clipboard
Stops routine that was started with startDataRequestsRoutine