Stay organized with collections
Save and categorize content based on your preferences.
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
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
getAreaId
public int getAreaId ()
Returns the area ID for this result.
getPropertyId
public int getPropertyId ()
Returns the property ID for this result.
getRequestId
public int getRequestId ()
Returns the unique ID for the GetPropertyRequest
this result is for.
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.
getValue
public T getValue ()
Returns the property's value.
toString
public String toString ()
Prints out debug message.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-17 UTC.
[null,null,["Last updated 2025-02-17 UTC."],[],[],null,["# CarPropertyManager.GetPropertyResult\n\nSummary: [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nCarPropertyManager.GetPropertyResult\n====================================\n\n\n`\npublic\nstatic\nfinal\n\nclass\nCarPropertyManager.GetPropertyResult\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|-------------------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | android.car.hardware.property.CarPropertyManager.GetPropertyResult\\\u003cT\\\u003e |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA successful result for [GetPropertyCallback](/reference/android/car/hardware/property/CarPropertyManager.GetPropertyCallback).\n\nSummary\n-------\n\n| ### Public methods ||\n|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` int` | ` `[getAreaId](/reference/android/car/hardware/property/CarPropertyManager.GetPropertyResult#getAreaId())`() ` Returns the area ID for this result. |\n| ` int` | ` `[getPropertyId](/reference/android/car/hardware/property/CarPropertyManager.GetPropertyResult#getPropertyId())`() ` Returns the property ID for this result. |\n| ` int` | ` `[getRequestId](/reference/android/car/hardware/property/CarPropertyManager.GetPropertyResult#getRequestId())`() ` Returns the unique ID for the [GetPropertyRequest](/reference/android/car/hardware/property/CarPropertyManager.GetPropertyRequest) this result is for. |\n| ` long` | ` `[getTimestampNanos](/reference/android/car/hardware/property/CarPropertyManager.GetPropertyResult#getTimestampNanos())`() ` Returns the timestamp in nanoseconds at which the value for the vehicle property happened. |\n| ` T` | ` `[getValue](/reference/android/car/hardware/property/CarPropertyManager.GetPropertyResult#getValue())`() ` Returns the property's value. |\n| ` String` | ` `[toString](/reference/android/car/hardware/property/CarPropertyManager.GetPropertyResult#toString())`() ` Prints out debug message. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nPublic methods\n--------------\n\n### getAreaId\n\n```\npublic int getAreaId ()\n```\n\nReturns the area ID for this result.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getPropertyId\n\n```\npublic int getPropertyId ()\n```\n\nReturns the property ID for this result.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getRequestId\n\n```\npublic int getRequestId ()\n```\n\nReturns the unique ID for the [GetPropertyRequest](/reference/android/car/hardware/property/CarPropertyManager.GetPropertyRequest) this result is for.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getTimestampNanos\n\n```\npublic long getTimestampNanos ()\n```\n\nReturns the timestamp in nanoseconds at which the value for the vehicle property\nhappened. For a given vehicle property, each new timestamp should be monotonically\nincreasing using the same time base as [SystemClock#elapsedRealtimeNanos()](/reference/android/os/SystemClock#elapsedRealtimeNanos()).\n\nNOTE: Timestamp should be synchronized with other signals from the platform (e.g.\n[Location](/reference/android/location/Location) and [SensorEvent](/reference/android/hardware/SensorEvent) instances).\nIdeally, timestamp synchronization error should be below 1 millisecond.\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------|--------|\n| `long` | \u003cbr /\u003e |\n\n### getValue\n\n```\npublic T getValue ()\n```\n\nReturns the property's value.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----|--------|\n| `T` | \u003cbr /\u003e |\n\n### toString\n\n```\npublic String toString ()\n```\n\nPrints out debug message.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |"]]