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 |
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
public int getAreaId ()
Returns the area ID for this result.
Returns | |
---|---|
int |
getPropertyId
public int getPropertyId ()
Returns the property ID for this result.
Returns | |
---|---|
int |
getRequestId
public int getRequestId ()
Returns the unique ID for the GetPropertyRequest
this result is for.
Returns | |
---|---|
int |
getTimestampNanos
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 |