CarInfo

public interface CarInfo

androidx.car.app.hardware.info.CarInfo


Manages access to car hardware specific info such as model, energy, and speed info.

Summary

Public methods

abstract void addEnergyLevelListener(Executor executor, OnCarDataAvailableListener<EnergyLevel> listener)

Setup an ongoing listener to receive EnergyLevel information from the car hardware.

abstract void addMileageListener(Executor executor, OnCarDataAvailableListener<Mileage> listener)

Setup an ongoing listener to receive Mileage information from the car hardware.

abstract void addSpeedListener(Executor executor, OnCarDataAvailableListener<Speed> listener)

Setup an ongoing listener to receive Speed information from the car hardware.

abstract void addTollListener(Executor executor, OnCarDataAvailableListener<TollCard> listener)

Setup an ongoing listener to receive TollCard information from the car hardware.

abstract void fetchEnergyProfile(Executor executor, OnCarDataAvailableListener<EnergyProfile> listener)

Reguest the EnergyProfile information about the car hardware.

abstract void fetchModel(Executor executor, OnCarDataAvailableListener<Model> listener)

Fetch the Model information about the car hardware.

abstract void removeEnergyLevelListener(OnCarDataAvailableListener<EnergyLevel> listener)

Remove an ongoing listener for EnergyLevel information.

abstract void