Added in API level 34

CarPropertyManager.SetPropertyResult

public static final class CarPropertyManager.SetPropertyResult
extends Object

java.lang.Object
   ↳ android.car.hardware.property.CarPropertyManager.SetPropertyResult


A successful result for SetPropertyCallback.

Summary

Public methods

int getAreaId()

Gets the area ID this result is for.

int getPropertyId()

Gets the property ID this result is for.

int getRequestId()

Gets the ID for the request this result is for.

long getUpdateTimestampNanos()

Gets the timestamp in nanoseconds at which the property was updated to the desired value.

String toString()

Prints out debug message.

Inherited methods

Public methods

getAreaId

Added in API level 34
public int getAreaId ()

Gets the area ID this result is for.

Returns
int

getPropertyId

Added in API level 34
public int getPropertyId ()

Gets the property ID this result is for.

Returns
int

getRequestId

Added in API level 34
public int getRequestId ()

Gets the ID for the request this result is for.

Returns
int

getUpdateTimestampNanos

Added in API level 34
public long getUpdateTimestampNanos ()

Gets the timestamp in nanoseconds at which the property was updated to the desired value.

The timestamp will use the same time base as SystemClock#elapsedRealtimeNanos().

NOTE: If waitForPropertyUpdate is set to false for the request, then this value will be the time when the async set request is successfully sent to the vehicle bus, not when the property is updated since we have no way of knowing that.

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

toString

Added in API level 34
public String toString ()

Prints out debug message.

Returns
String