Sprache

AccessibilityNodeInfo.AccessibilityAction.ActionFocus Property

Definition

Action that gives input focus to the node.

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

Property Value

Attributes

Remarks

Action that gives input focus to the node.

The focus request send an event of AccessibilityEvent.TYPE_VIEW_FOCUSED if successful. In the View system, this is handled by View.requestFocus.

The node that is focused should return true for AccessibilityNodeInfo.isFocused(). See ACTION_ACCESSIBILITY_FOCUS for the difference between system and accessibility focus.

Android reference for android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_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