AccessibilityNodeInfo AccessibilityNodeInfo Class

Definition

This class represents a node of the window content as well as actions that can be requested from its source.

[Android.Runtime.Register("android/view/accessibility/AccessibilityNodeInfo", ApiSince=14, DoNotGenerateAcw=true)]
public class AccessibilityNodeInfo : Java.Lang.Object, Android.OS.IParcelable, IDisposable
type AccessibilityNodeInfo = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
Inheritance
AccessibilityNodeInfoAccessibilityNodeInfo
Attributes
Implements

Remarks

Android platform documentation

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

AccessibilityNodeInfo(IntPtr, JniHandleOwnership) AccessibilityNodeInfo(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

ActionAccessibilityFocus ActionAccessibilityFocus

Action that gives accessibility focus to the node.

ActionArgumentColumnInt ActionArgumentColumnInt
ActionArgumentExtendSelectionBoolean ActionArgumentExtendSelectionBoolean

Argument for whether when moving at granularity to extend the selection or to move it otherwise.

ActionArgumentHtmlElementString ActionArgumentHtmlElementString

Argument for which HTML element to get moving to the next/previous HTML element.

ActionArgumentMovementGranularityInt ActionArgumentMovementGranularityInt

Argument for which movement granularity to be used when traversing the node text.

ActionArgumentMoveWindowX ActionArgumentMoveWindowX
ActionArgumentMoveWindowY ActionArgumentMoveWindowY
ActionArgumentProgressValue ActionArgumentProgressValue
ActionArgumentRowInt ActionArgumentRowInt
ActionArgumentSelectionEndInt ActionArgumentSelectionEndInt

Argument for specifying the selection end.

ActionArgumentSelectionStartInt ActionArgumentSelectionStartInt

Argument for specifying the selection start.

ActionArgumentSetTextCharsequence ActionArgumentSetTextCharsequence

Argument for specifying the text content to set.

ActionClearAccessibilityFocus ActionClearAccessibilityFocus

Action that clears accessibility focus of the node.

ActionClearFocus ActionClearFocus

Action that clears input focus of the node.

ActionClearSelection ActionClearSelection

Action that deselects the node.

ActionClick ActionClick

Action that clicks on the node info.

ActionCollapse ActionCollapse

Action to collapse an expandable node.

ActionCopy ActionCopy

Action to copy the current selection to the clipboard.

ActionCut ActionCut

Action to cut the current selection and place it to the clipboard.

ActionDismiss ActionDismiss

Action to dismiss a dismissable node.

ActionExpand ActionExpand

Action to expand an expandable node.

ActionFocus ActionFocus

Action that gives input focus to the node.

ActionLongClick ActionLongClick

Action that long clicks on the node.

ActionNextAtMovementGranularity ActionNextAtMovementGranularity

Action that requests to go to the next entity in this node's text at a given movement granularity.

ActionNextHtmlElement ActionNextHtmlElement

Action to move to the next HTML element of a given type.

ActionPaste ActionPaste

Action to paste the current clipboard content.

ActionPreviousAtMovementGranularity ActionPreviousAtMovementGranularity

Action that requests to go to the previous entity in this node's text at a given movement granularity.

ActionPreviousHtmlElement ActionPreviousHtmlElement

Action to move to the previous HTML element of a given type.

ActionScrollBackward ActionScrollBackward

Action to scroll the node content backward.

ActionScrollForward ActionScrollForward

Action to scroll the node content forward.

ActionSelect ActionSelect

Action that selects the node.

ActionSetSelection ActionSetSelection

Action to set the selection.

ActionSetText ActionSetText

Action that sets the text of the node.

ExtraDataTextCharacterLocationArgLength ExtraDataTextCharacterLocationArgLength
ExtraDataTextCharacterLocationArgStartIndex ExtraDataTextCharacterLocationArgStartIndex
ExtraDataTextCharacterLocationKey ExtraDataTextCharacterLocationKey
FocusAccessibility FocusAccessibility

The accessibility focus.

FocusInput FocusInput

The input focus.

MovementGranularityCharacter MovementGranularityCharacter

Movement granularity bit for traversing the text of a node by character.

MovementGranularityLine MovementGranularityLine

Movement granularity bit for traversing the text of a node by line.

MovementGranularityPage MovementGranularityPage

Movement granularity bit for traversing the text of a node by page.

MovementGranularityParagraph MovementGranularityParagraph

Movement granularity bit for traversing the text of a node by paragraph.

MovementGranularityWord MovementGranularityWord

Movement granularity bit for traversing the text of a node by word.

Properties

AccessibilityFocused AccessibilityFocused

Gets whether this node is accessibility focused.

ActionList ActionList

Gets the actions that can be performed on the node.

Actions Actions

Gets the actions that can be performed on the node.

AvailableExtraData AvailableExtraData
Checkable Checkable

Gets whether this node is checkable.

Checked Checked

Gets whether this node is checked.

ChildCount ChildCount

Gets the number of children.

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
ClassName ClassName
ClassNameFormatted ClassNameFormatted

Gets the class this node comes from.

Clickable Clickable

Gets whether this node is clickable.

ContentDescription ContentDescription
ContentDescriptionFormatted ContentDescriptionFormatted

Gets the content description of this node.

ContentInvalid ContentInvalid

Gets if the content of this node is invalid.

ContextClickable ContextClickable
Creator Creator
Dismissable Dismissable

Gets if the node can be dismissed.

DrawingOrder DrawingOrder
Editable Editable

Gets if the node is editable.

Enabled Enabled

Gets whether this node is enabled.

Error Error
ErrorFormatted ErrorFormatted

Gets the error text of this node.

Extras Extras

Gets an optional bundle with extra data.

Focusable Focusable

Gets whether this node is focusable.

Focused Focused

Gets whether this node is focused.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
HintText HintText
HintTextFormatted HintTextFormatted
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
ImportantForAccessibility ImportantForAccessibility
InputType InputType

Gets the input type of the source as defined by IInputType.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
LabeledBy LabeledBy

Gets the node info which serves as the label of the view represented by this info for accessibility purposes.

LabelFor LabelFor

Gets the node info for which the view represented by this info serves as a label for accessibility purposes.

LiveRegion LiveRegion

Gets the node's live region mode.

LongClickable LongClickable

Gets whether this node is long clickable.

MaxTextLength MaxTextLength

Returns the maximum text length for this node.

MovementGranularities MovementGranularities

Gets the movement granularities for traversing the text of this node.

MultiLine MultiLine

Gets if the node is a multi line editable text.

PackageName PackageName
PackageNameFormatted PackageNameFormatted

Gets the package this node comes from.

Parent Parent

Gets the parent.

Password Password

Gets whether this node is a password.

PeerReference PeerReference Inherited from Object
Scrollable Scrollable

Gets if the node is scrollable.

Selected Selected

Gets whether this node is selected.

ShowingHintText ShowingHintText
Text Text
TextFormatted TextFormatted

Gets the text of this node.

TextSelectionEnd TextSelectionEnd

Gets the text selection end.

TextSelectionStart TextSelectionStart

Gets the text selection start.

ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

TraversalAfter TraversalAfter
TraversalBefore TraversalBefore
ViewIdResourceName ViewIdResourceName

Gets the fully qualified resource name of the source view's id.

VisibleToUser VisibleToUser

Gets whether this node is visible to the user.

Window Window

Gets the window to which this node belongs.

WindowId WindowId

Gets the id of the window from which the info comes from.

Methods

AddAction(Action) AddAction(Action)

Adds an action that can be performed on the node.

AddChild(View) AddChild(View)

Adds a child.

AddChild(View, Int32) AddChild(View, Int32)

Adds a virtual child which is a descendant of the given root.

CanOpenPopup() CanOpenPopup()

Gets if this node opens a popup or a dialog.

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
DescribeContents() DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
FindAccessibilityNodeInfosByText(String) FindAccessibilityNodeInfosByText(String)

Finds AccessibilityNodeInfos by text.

FindAccessibilityNodeInfosByViewId(String) FindAccessibilityNodeInfosByViewId(String)

Finds AccessibilityNodeInfos by the fully qualified view id's resource name where a fully qualified id is of the from "package:id/id_resource_name".

FindFocus(NodeFocus) FindFocus(NodeFocus)

Find the view that has the specified focus type.

FocusSearch(FocusSearchDirection) FocusSearch(FocusSearchDirection)

Searches for the nearest view in the specified direction that can take the input focus.

GetBoundsInParent(Rect) GetBoundsInParent(Rect)

Gets the node bounds in parent coordinates.

GetBoundsInScreen(Rect) GetBoundsInScreen(Rect)

Gets the node bounds in screen coordinates.

GetChild(Int32) GetChild(Int32)

Get the child at given index.

GetCollectionInfo() GetCollectionInfo()

Gets the collection info if the node is a collection.

GetCollectionItemInfo() GetCollectionItemInfo()

Gets the collection item info if the node is a collection item.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetRangeInfo() GetRangeInfo()

Gets the range info if this node is a range.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
Obtain() Obtain()

Returns a cached instance if such is available otherwise a new one.

Obtain(AccessibilityNodeInfo) Obtain(AccessibilityNodeInfo)

Returns a cached instance if such is available or a new one is create.

Obtain(View) Obtain(View)

Returns a cached instance if such is available otherwise a new one and sets the source.

Obtain(View, Int32) Obtain(View, Int32)

Returns a cached instance if such is available otherwise a new one and sets the source.

PerformAction(Action) PerformAction(Action)

Performs an action on the node.

PerformAction(Action, Bundle) PerformAction(Action, Bundle)

Performs an action on the node.

Recycle() Recycle()

Return an instance back to be reused.

Refresh() Refresh()

Refreshes this info with the latest state of the view it represents.

RefreshWithExtraData(String, Bundle) RefreshWithExtraData(String, Bundle)
RemoveAction(AccessibilityNodeInfo+AccessibilityAction) RemoveAction(AccessibilityNodeInfo+AccessibilityAction)

Removes an action that can be performed on the node.

RemoveAction(Int32) RemoveAction(Int32)

Removes an action that can be performed on the node.

RemoveChild(View) RemoveChild(View)

Removes a child.

RemoveChild(View, Int32) RemoveChild(View, Int32)

Removes a virtual child which is a descendant of the given root.

SetBoundsInParent(Rect) SetBoundsInParent(Rect)

Sets the node bounds in parent coordinates.

SetBoundsInScreen(Rect) SetBoundsInScreen(Rect)

Sets the node bounds in screen coordinates.

SetCanOpenPopup(Boolean) SetCanOpenPopup(Boolean)

Sets if this node opens a popup or a dialog.

SetCollectionInfo(AccessibilityNodeInfo+CollectionInfo) SetCollectionInfo(AccessibilityNodeInfo+CollectionInfo)

Sets the collection info if the node is a collection.

SetCollectionItemInfo(AccessibilityNodeInfo+CollectionItemInfo) SetCollectionItemInfo(AccessibilityNodeInfo+CollectionItemInfo)

Sets the collection item info if the node is a collection item.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetLabeledBy(View) SetLabeledBy(View)

Sets the view which serves as the label of the view represented by this info for accessibility purposes.

SetLabeledBy(View, Int32) SetLabeledBy(View, Int32)

Sets the view which serves as the label of the view represented by this info for accessibility purposes.

SetLabelFor(View) SetLabelFor(View)

Sets the view for which the view represented by this info serves as a label for accessibility purposes.

SetLabelFor(View, Int32) SetLabelFor(View, Int32)

Sets the view for which the view represented by this info serves as a label for accessibility purposes.

SetParent(View) SetParent(View)

Sets the parent.

SetParent(View, Int32) SetParent(View, Int32)

Sets the parent to be a virtual descendant of the given root.

SetRangeInfo(AccessibilityNodeInfo+RangeInfo) SetRangeInfo(AccessibilityNodeInfo+RangeInfo)

Sets the range info if this node is a range.

SetSource(View) SetSource(View)

Sets the source.

SetSource(View, Int32) SetSource(View, Int32)

Sets the source to be a virtual descendant of the given root.

SetTextSelection(Int32, Int32) SetTextSelection(Int32, Int32)

Sets the text selection start and end.

SetTraversalAfter(View) SetTraversalAfter(View)
SetTraversalAfter(View, Int32) SetTraversalAfter(View, Int32)
SetTraversalBefore(View) SetTraversalBefore(View)
SetTraversalBefore(View, Int32) SetTraversalBefore(View, Int32)
ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags) WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

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

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to