Package: android.hardware.automotive.vehicle@2.0

IVehicleCallback

interface IVehicleCallback

Methods

onPropertyEvent

oneway onPropertyEvent (vec<VehiclePropValue> propValues)

Event callback happens whenever a variable that the API user has subscribed to needs to be reported.This may be based purely on threshold and frequency(a regular subscription, see subscribe call's arguments)or when the IVehicle#set method was called and the actual change needs to be reported.

These callbacks are chunked.

Details
RPC mode
oneway
Parameters
propValues

onPropertySet

oneway onPropertySet (VehiclePropValue propValue)

This method gets called if the client was subscribed to a property using SubscribeFlags::SET_CALL flag and IVehicle#set(...)method was called.

These events must be delivered to subscriber immediately without any batching.

Details
RPC mode
oneway
Parameters
propValue

onPropertySetError

oneway onPropertySetError (StatusCode errorCode, int32_t propId, int32_t areaId)

Set property value is usually asynchronous operation.Thus even if client received StatusCode::OK from the IVehicle::set(...)this doesn't guarantee that the value was successfully propagated to the vehicle network.If such rare event occurs this method must be called.

Details
RPC mode
oneway
Parameters
errorCode
- any value from StatusCode enum.
propId
areaId
- bitmask that specifies in which areas the problem has occurred, must be 0 for global properties