IPropertyReader Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An interface for reading the properties of an inspectable object.
[Android.Runtime.Register("android/view/inspector/PropertyReader", "", "Android.Views.Inspectors.IPropertyReaderInvoker", ApiSince=29)]
public interface IPropertyReader : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/view/inspector/PropertyReader", "", "Android.Views.Inspectors.IPropertyReaderInvoker", ApiSince=29)>]
type IPropertyReader = interface
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Attributes
- Implements
An interface for reading the properties of an inspectable object.
PropertyReader
is defined as an interface that will be called by InspectionCompanion#readProperties(Object, PropertyReader)
. This approach allows a client inspector to read the values of primitive properties without the overhead of instantiating a class to hold the property values for each inspection pass. If an inspectable remains unchanged between reading passes, it should be possible for a PropertyReader
to avoid new allocations for subsequent reading passes.
It has separate methods for all primitive types to avoid autoboxing overhead if a concrete implementation is able to work with primitives. Implementations should be prepared to accept {null} as the value of PropertyReader#readObject(int, Object)
.
Java documentation for android.view.inspector.PropertyReader
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
Jni |
Returns the value of |
Jni |
State of the managed peer. (Inherited from IJavaPeerable) |
Jni |
Member access and invocation support. (Inherited from IJavaPeerable) |
Peer |
Returns a JniObjectReference of the wrapped Java object instance. (Inherited from IJavaPeerable) |
Disposed() |
Called when the instance has been disposed. (Inherited from IJavaPeerable) |
Dispose |
If there are no outstanding references to this instance, then
calls |
Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
Read |
Read a primitive boolean property. |
Read |
Read a primitive byte property. |
Read |
Read a primitive character property. |
Read |
Read a |
Read |
Read a color packed into a |
Read |
Read a color packed into a |
Read |
Read a read a primitive double property. |
Read |
Read a primitive float property. |
Read |
Read |
Read |
Read a primitive integer property. |
Read |
Read an enumeration packed into a primitive |
Read |
Read a flag packed into a primitive |
Read |
Read a primitive long property. |
Read |
Read any object as a property. |
Read |
Read an integer that contains a resource ID. |
Read |
Read a primitive short property. |
Set |
Set the value returned by |
Set |
(Inherited from IJavaPeerable) |
Set |
Set the value returned by |
Unregister |
Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations. (Inherited from IJavaPeerable) |
Java |
Performs an Android runtime-checked type conversion. |
Java |
|
Get |
Product | Versions |
---|---|
.NET for Android | .NET for Android API 33, .NET for Android API 34 |