Added in API level 34

CarPropertyManager.GetPropertyResult

public static final class CarPropertyManager.GetPropertyResult
extends Object

java.lang.Object
   ↳ android.car.hardware.property.CarPropertyManager.GetPropertyResult<T>


A successful result for GetPropertyCallback.

Summary

Public methods

int getAreaId()

Returns the area ID for this result.

int getPropertyId()

Returns the property ID for this result.

int getRequestId()

Returns the unique ID for the GetPropertyRequest this result is for.

long getTimestampNanos()

Returns the timestamp in nanoseconds at which the value for the vehicle property happened.

T getValue()

Returns the property's value.

String toString()

Prints out debug message.

Inherited methods

Public methods

getAreaId

Added in API level 34
public int getAreaId ()

Returns the area ID for this result.

Returns
int

getPropertyId

Added in API level 34
public int getPropertyId ()

Returns the property ID for this result.

Returns
int

getRequestId

Added in API level 34
public int getRequestId ()

Returns the unique ID for the GetPropertyRequest this result is for.

Returns
int

getTimestampNanos

Added in API level 34
public long getTimestampNanos ()

Returns the timestamp in nanoseconds at which the value for the vehicle property happened. For a given vehicle property, each new timestamp should be monotonically increasing using the same time base as SystemClock#elapsedRealtimeNanos().

NOTE: Timestamp should be synchronized with other signals from the platform (e.g. Location and SensorEvent instances). Ideally, timestamp synchronization error should be below 1 millisecond.

Returns
long

getValue

Added in API level 34
public T getValue ()

Returns the property's value.

Returns
T

toString

Added in API level 34
public String toString ()

Prints out debug message.

Returns
String