ViewStructure Class
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.
ViewStructure is a container for storing additional
per-view data generated by View#onProvideStructure
View.onProvideStructure and View#onProvideAutofillStructure
View.onProvideAutofillStructure.
[Android.Runtime.Register("android/view/ViewStructure", ApiSince=23, DoNotGenerateAcw=true)]
public abstract class ViewStructure : Java.Lang.Object
[<Android.Runtime.Register("android/view/ViewStructure", ApiSince=23, DoNotGenerateAcw=true)>]
type ViewStructure = class
inherit Object
- Inheritance
- Attributes
Remarks
ViewStructure is a container for storing additional per-view data generated by View#onProvideStructure View.onProvideStructure and View#onProvideAutofillStructure View.onProvideAutofillStructure.
To learn more about using Autofill in your app, read the Autofill Framework guides.
Java documentation for android.view.ViewStructure.
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.
Constructors
| Name | Description |
|---|---|
| ViewStructure() |
Initializes a new instance of the view structure type. |
| ViewStructure(IntPtr, JniHandleOwnership) |
Creates a managed peer for an existing Java Native Interface object reference. |
Fields
| Name | Description |
|---|---|
| ExtraVirtualStructureType |
Key used for writing the type of the view that generated the virtual structure of its children. |
| ExtraVirtualStructureVersionNumber |
Key used for specifying the version of the view that generated the virtual structure for itself and its children |
Properties
| Name | Description |
|---|---|
| AutofillId |
Gets or sets the AutofillId associated with this node. |
| ChildCount |
Return the child count as set by setChildCount(int) . |
| Class |
Returns the runtime class of this |
| Extras |
Get extra data associated with this view structure; the returned Bundle is mutable, allowing you to view and modify its contents. Keys placed in the Bundle should use an appropriate namespace prefix (such as com.google.MY_KEY) to avoid conflicts. |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| HasExtras |
Returns true if getExtras() has been used to create extra content. |
| Hint |
Gets or sets the hint text provided by this view structure. |
| HintFormatted |
Retrieve the last hint set by setHint(CharSequence) . |
| JniIdentityHashCode |
Gets the identity hash code assigned to this Java peer by the interop runtime. (Inherited from Object) |
| JniPeerMembers |
Gets the JNI peer metadata used by the .NET for Android binding runtime. |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| PendingCredentialCallback |
Gets the callback associated with this node. If null, no callback or request is associated with this node, and no CredentialManager request is fired when this node is focused. Use |
| PendingCredentialRequest |
Gets the credential request associated with this node. If null, no request is associated with this node and no CredentialManager request is fired when this node is focused. Use |
| Text |
Gets or sets the text provided by this view structure. |
| TextFormatted |
Retrieve the last setText(CharSequence) . |
| TextSelectionEnd |
Retrieve the last selection end set by setText(CharSequence,int,int) . |
| TextSelectionStart |
Retrieve the last selection start set by setText(CharSequence,int,int) . |
| ThresholdClass |
Gets the JNI class handle used by the .NET for Android binding runtime. |
| ThresholdType |
Gets the managed type used by the .NET for Android binding runtime. |
Methods
| Name | Description |
|---|---|
| AddChildCount(Int32) |
Add to this view's child count. |
| AsyncCommit() |
Call when done populating a |
| AsyncNewChild(Int32) |
Like |
| ClearCredentialManagerRequest() |
Clears the credential request previously set through
|
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| Dispose() |
Releases the resources held by this Java peer. (Inherited from Object) |
| Dispose(Boolean) |
Releases the resources held by this Java peer. (Inherited from Object) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| NewChild(Int32) |
Create a new child |
| NewHtmlInfoBuilder(String) |
Creates a new |
| Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
| NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
| SetAccessibilityFocused(Boolean) |
Set the accessibility focused state of this view, as per
|
| SetActivated(Boolean) |
Set the activated state of this view, as per |
| SetAlpha(Single) |
Set an alpha transformation that is applied to this view, as per
|
| SetAutofillHints(String[]) |
Sets the a hints that helps the autofill service to select the appropriate data to fill the view. |
| SetAutofillId(AutofillId, Int32) |
Sets the |
| SetAutofillOptions(ICharSequence[]) |
Sets the options that can be used to autofill this node. Typically used by nodes whose View.getAutofillType() is a list to indicate the meaning of each possible value in the list. |
| SetAutofillOptions(String[]) |
Sets the options that can be used to autofill this node. |
| SetAutofillType(AutofillType) |
Sets the View.getAutofillType() that can be used to autofill this node. |
| SetAutofillValue(AutofillValue) |
Sets the AutofillValue representing the current value of this node. |
| SetCheckable(Boolean) |
Set the checkable state of this view, such as whether it implements the
|
| SetChecked(Boolean) |
Set the checked state of this view, such as
|
| SetClassName(String) |
Set the class name of the view, as per
|
| SetClickable(Boolean) |
Set the clickable state of this view, as per |
| SetContentDescription(ICharSequence) |
Set the content description of the view, as per
|
| SetContentDescription(String) |
Set the content description of the view, as per
|
| SetContextClickable(Boolean) |
Set the context clickable state of this view, as per
|
| SetDataIsSensitive(Boolean) |
Sets whether the data on this node is sensitive; if it is, then its content (text, autofill value, etc. |
| SetDimens(Int32, Int32, Int32, Int32, Int32, Int32) |
Set the basic dimensions of this view. |
| SetElevation(Single) |
Set the visual elevation (shadow) of the view, as per
|
| SetEnabled(Boolean) |
Set the enabled state of this view, as per |
| SetFocusable(Boolean) |
Set the focusable state of this view, as per |
| SetFocused(Boolean) |
Set the focused state of this view, as per |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetHintIdEntry(String) |
Sets the identifier used to set the hint associated with this view. Used as metadata for fingerprinting view nodes/structures. Should only be set when the node is used for autofill purposes - it will be ignored when used for Assist. |
| SetHtmlInfo(ViewStructure+HtmlInfo) |
Sets the HTML properties of this node when it represents an HTML element. Should only be set when the node is used for autofill purposes - it will be ignored when used for assist. |
| SetId(Int32, String, String, String) |
Set the identifier for this view. |
| SetImportantForAutofill(Int32) |
Sets the |
| SetInputType(Int32) |
Sets the InputType bits of this node. |
| SetLocaleList(LocaleList) |
Sets the the list of locales associated with this node. |
| SetLongClickable(Boolean) |
Set the long clickable state of this view, as per
|
| SetMaxTextEms(Int32) |
Sets the maximum width in ems of the text associated with this view, when supported. Should only be set when the node is used for autofill purposes - it will be ignored when used for Assist. |
| SetMaxTextLength(Int32) |
Sets the maximum length of the text associated with this view, when supported. Should only be set when the node is used for autofill purposes - it will be ignored when used for Assist. |
| SetMinTextEms(Int32) |
Sets the minimum width in ems of the text associated with this view, when supported. Should only be set when the node is used for autofill purposes - it will be ignored when used for Assist. |
| SetOpaque(Boolean) |
Set the opaque state of this view, as per |
| SetPendingCredentialRequest(GetCredentialRequest, IOutcomeReceiver) |
Sets a credential request to be fired to |
| SetReceiveContentMimeTypes(String[]) |
Sets the MIME types accepted by this view. See View.getReceiveContentMimeTypes() . Should only be set when the node is used for Autofill or Content Capture purposes - it will be ignored when used for Assist. |
| SetSelected(Boolean) |
Set the selected state of this view, as per |
| SetText(ICharSequence, Int32, Int32) |
Like |
| SetText(String, Int32, Int32) |
Like |
| SetTextIdEntry(String) |
Sets the identifier used to set the text associated with this view. Should only be set when the node is used for autofill purposes - it will be ignored when used for Assist. |
| SetTextLines(Int32[], Int32[]) |
Set line information for test that was previously supplied through
|
| SetTextStyle(Single, Int32, Int32, AssistTextStyle) |
Explicitly set default global style information for text that was previously set with
|
| SetTransformation(Matrix) |
Set the transformation matrix associated with this view, as per
|
| SetVisibility(ViewStates) |
Set the visibility state of this view, as per
|
| SetWebDomain(String) |
Sets the Web domain represented by this node. Typically used when the view is a container for an HTML document. |
| ToArray<T>() |
Creates a managed array from this Java array wrapper. (Inherited from Object) |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| UnregisterFromRuntime() |
Unregisters this Java peer from the interop runtime. (Inherited from Object) |
| Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
| Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
| Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJavaPeerable.Disposed() |
Notifies the interop runtime that this managed peer has been disposed. (Inherited from Object) |
| IJavaPeerable.DisposeUnlessReferenced() |
Releases this Java peer unless it is retained by another managed reference. (Inherited from Object) |
| IJavaPeerable.Finalized() |
Notifies the interop runtime that this managed peer has been finalized. (Inherited from Object) |
| IJavaPeerable.JniManagedPeerState |
Gets the state that describes the relationship between this managed peer and its JNI reference. (Inherited from Object) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) |
Sets the interop identity hash code for this Java peer. (Inherited from Object) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
Sets the managed and JNI peer state for this Java peer. (Inherited from Object) |
| IJavaPeerable.SetPeerReference(JniObjectReference) |
Sets the JNI object reference used by this managed peer. (Inherited from Object) |
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) | |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |