ViewStructure Class

Definition

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
ViewStructure
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

ViewStructure()
ViewStructure(IntPtr, JniHandleOwnership)

Properties

AutofillId
ChildCount
Class

Returns the runtime class of this Object.

(Inherited from Object)
Extras
Handle

The handle to the underlying Android instance.

(Inherited from Object)
HasExtras
Hint
HintFormatted
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
Text
TextFormatted
TextSelectionEnd
TextSelectionStart
ThresholdClass
ThresholdType

Methods

AddChildCount(Int32)

Add to this view's child count.

AsyncCommit()

Call when done populating a ViewStructure returned by #asyncNewChild.

AsyncNewChild(Int32)

Like #newChild, but allows the caller to asynchronously populate the returned child.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (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 ViewStructure in this view, putting into the list of children at <var>index</var>.

NewHtmlInfoBuilder(String)

Creates a new HtmlInfo.Builder for the given HTML tag.

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 View#isAccessibilityFocused View.isAccessibilityFocused().

SetActivated(Boolean)

Set the activated state of this view, as per View#isActivated View.isActivated().

SetAlpha(Single)

Set an alpha transformation that is applied to this view, as per View#getAlpha View.getAlpha().

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 AutofillId for this virtual node.

SetAutofillOptions(ICharSequence[])

Sets the options that can be used to autofill this node.

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 android.widget.Checkable interface.

SetChecked(Boolean)

Set the checked state of this view, such as android.widget.Checkable#isChecked Checkable.isChecked().

SetClassName(String)

Set the class name of the view, as per View#getAccessibilityClassName View.getAccessibilityClassName().

SetClickable(Boolean)

Set the clickable state of this view, as per View#isClickable View.isClickable().

SetContentDescription(ICharSequence)

Set the content description of the view, as per View#getContentDescription View.getContentDescription().

SetContentDescription(String)

Set the content description of the view, as per View#getContentDescription View.getContentDescription().

SetContextClickable(Boolean)

Set the context clickable state of this view, as per View#isContextClickable View.isContextClickable().

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 View#getZ View.getZ().

SetEnabled(Boolean)

Set the enabled state of this view, as per View#isEnabled View.isEnabled().

SetFocusable(Boolean)

Set the focusable state of this view, as per View#isFocusable View.isFocusable().

SetFocused(Boolean)

Set the focused state of this view, as per View#isFocused View.isFocused().

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetHintIdEntry(String)

Sets the identifier used to set the hint associated with this view.

SetHtmlInfo(ViewStructure+HtmlInfo)

Sets the HTML properties of this node when it represents an HTML element.

SetId(Int32, String, String, String)

Set the identifier for this view.

SetImportantForAutofill(Int32)

Sets the View#setImportantForAutofill(int) importantForAutofill mode of the view associated with this node.

SetInputType(Int32)

Sets the android.text.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 View#isLongClickable View.isLongClickable().

SetMaxTextEms(Int32)

Sets the maximum width in ems of the text associated with this view, when supported.

SetMaxTextLength(Int32)

Sets the maximum length of the text associated with this view, when supported.

SetMinTextEms(Int32)

Sets the minimum width in ems of the text associated with this view, when supported.

SetOpaque(Boolean)

Set the opaque state of this view, as per View#isOpaque View.isOpaque().

SetReceiveContentMimeTypes(String[])

Sets the MIME types accepted by this view.

SetSelected(Boolean)

Set the selected state of this view, as per View#isSelected View.isSelected().

SetText(ICharSequence, Int32, Int32)

Like #setText(CharSequence) but with an active selection extending from <var>selectionStart</var> through <var>selectionEnd</var>.

SetText(String, Int32, Int32)

Like #setText(CharSequence) but with an active selection extending from <var>selectionStart</var> through <var>selectionEnd</var>.

SetTextIdEntry(String)

Sets the identifier used to set the text associated with this view.

SetTextLines(Int32[], Int32[])

Set line information for test that was previously supplied through #setText(CharSequence).

SetTextStyle(Single, Int32, Int32, AssistTextStyle)

Explicitly set default global style information for text that was previously set with #setText.

SetTransformation(Matrix)

Set the transformation matrix associated with this view, as per View#getMatrix View.getMatrix(), or null if there is none.

SetVisibility(ViewStates)

Set the visibility state of this view, as per View#getVisibility View.getVisibility().

SetWebDomain(String)

Sets the Web domain represented by this node.

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (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)

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, 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)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to