Sdílet prostřednictvím


IInspectionCompanion.ReadProperties(Object, IPropertyReader) Method

Definition

Read the values of an instance of this companion's type into a PropertyReader.

[Android.Runtime.Register("readProperties", "(Ljava/lang/Object;Landroid/view/inspector/PropertyReader;)V", "GetReadProperties_Ljava_lang_Object_Landroid_view_inspector_PropertyReader_Handler:Android.Views.Inspectors.IInspectionCompanionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)]
public void ReadProperties (Java.Lang.Object inspectable, Android.Views.Inspectors.IPropertyReader propertyReader);
[<Android.Runtime.Register("readProperties", "(Ljava/lang/Object;Landroid/view/inspector/PropertyReader;)V", "GetReadProperties_Ljava_lang_Object_Landroid_view_inspector_PropertyReader_Handler:Android.Views.Inspectors.IInspectionCompanionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)>]
abstract member ReadProperties : Java.Lang.Object * Android.Views.Inspectors.IPropertyReader -> unit

Parameters

inspectable
Object

A object of type {T} to read the properties of.

propertyReader
IPropertyReader

An object which receives the property IDs and values.

Attributes

Remarks

Read the values of an instance of this companion's type into a PropertyReader.

This method needs to return the property IDs stored by #mapProperties(PropertyMapper). Implementations should track if their properties have been mapped and throw a UninitializedPropertyMapException if this method is called before {mapProperties}.

Java documentation for android.view.inspector.InspectionCompanion.readProperties(T, 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.

Applies to