Język

AccessibilityNodeInfo.AccessibilityAction.ActionAccessibilityFocus Property

Definition

Action that gives accessibility focus to the node.

[Android.Runtime.Register("ACTION_ACCESSIBILITY_FOCUS")]
public static Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction ActionAccessibilityFocus { get; }
[<Android.Runtime.Register("ACTION_ACCESSIBILITY_FOCUS")>]
static member ActionAccessibilityFocus : Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction

Property Value

Attributes

Remarks

Action that gives accessibility focus to the node.

The UI element that implements this should send a AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED event if successful. The node that is focused should return true for AccessibilityNodeInfo.isAccessibilityFocused().

This is intended to be used by screen readers to assist with user navigation. Apps changing focus can confuse screen readers, so the resulting behavior can vary by device and screen reader version.

This is distinct from ACTION_FOCUS, which refers to system focus. System focus is typically used to convey targets for keyboard navigation.

Android reference for android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_ACCESSIBILITY_FOCUS.

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