retrieveVehicle

Retrieves and configures a vehicle based on the specified options.

The retrieved vehicle can be further modified using com.tomtom.sdk.vehicle.VehicleProvider.updateVehicleProperties.

Threading: This method should be invoked from a background thread as it may involve time-consuming operations, such as network requests and IO.

Return

A Result containing either a successfully retrieved Vehicle or a VehicleMetadataFailure indicating failure in retrieving the vehicle.

Parameters

options

The options for retrieving the vehicle.


Retrieves and configures a vehicle based on the specified acquisition options.

The retrieved vehicle can be further modified using com.tomtom.sdk.vehicle.VehicleProvider.updateVehicleProperties.

This method is asynchronous and will invoke the provided callback with the result of the vehicle retrieval operation once completed.

Return

The Cancellable operation that can be used to cancel the request if needed.

Parameters

options

The options for retrieving the vehicle.

callback

The callback to be invoked with the result of the vehicle retrieval, containing either the successfully retrieved Vehicle or a VehicleMetadataFailure indicating the reason for failure.