IPropertyReader Interface
Definition
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
Remarks
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.
Properties
Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
JniIdentityHashCode |
Returns the value of |
JniManagedPeerState |
State of the managed peer. (Inherited from IJavaPeerable) |
JniPeerMembers |
Member access and invocation support. (Inherited from IJavaPeerable) |
PeerReference |
Returns a JniObjectReference of the wrapped Java object instance. (Inherited from IJavaPeerable) |
Methods
Disposed() |
Called when the instance has been disposed. (Inherited from IJavaPeerable) |
DisposeUnlessReferenced() |
If there are no outstanding references to this instance, then
calls |
Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
ReadBoolean(Int32, Boolean) |
Read a primitive boolean property. |
ReadByte(Int32, SByte) |
Read a primitive byte property. |
ReadChar(Int32, Char) |
Read a primitive character property. |
ReadColor(Int32, ColorObject) |
Read a |
ReadColor(Int32, Int32) |
Read a color packed into a |
ReadColor(Int32, Int64) |
Read a color packed into a |
ReadDouble(Int32, Double) |
Read a read a primitive double property. |
ReadFloat(Int32, Single) |
Read a primitive float property. |
ReadGravity(Int32, Int32) |
Read |
ReadInt(Int32, Int32) |
Read a primitive integer property. |
ReadIntEnum(Int32, Int32) |
Read an enumeration packed into a primitive |
ReadIntFlag(Int32, Int32) |
Read a flag packed into a primitive |
ReadLong(Int32, Int64) |
Read a primitive long property. |
ReadObject(Int32, Object) |
Read any object as a property. |
ReadResourceId(Int32, Int32) |
Read an integer that contains a resource ID. |
ReadShort(Int32, Int16) |
Read a primitive short property. |
SetJniIdentityHashCode(Int32) |
Set the value returned by |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) |
Set the value returned by |
UnregisterFromRuntime() |
Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations. (Inherited from IJavaPeerable) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |