Share via


AccessibilityNodeProvider.FindFocus(NodeFocus) Method

Definition

Find the virtual view, such as a descendant of the host View, that has the specified focus type.

[Android.Runtime.Register("findFocus", "(I)Landroid/view/accessibility/AccessibilityNodeInfo;", "GetFindFocus_IHandler")]
public virtual Android.Views.Accessibility.AccessibilityNodeInfo? FindFocus (Android.Views.Accessibility.NodeFocus focus);
[<Android.Runtime.Register("findFocus", "(I)Landroid/view/accessibility/AccessibilityNodeInfo;", "GetFindFocus_IHandler")>]
abstract member FindFocus : Android.Views.Accessibility.NodeFocus -> Android.Views.Accessibility.AccessibilityNodeInfo
override this.FindFocus : Android.Views.Accessibility.NodeFocus -> Android.Views.Accessibility.AccessibilityNodeInfo

Parameters

focus
NodeFocus

The focus to find. One of AccessibilityNodeInfo#FOCUS_INPUT or AccessibilityNodeInfo#FOCUS_ACCESSIBILITY.

Returns

The node info of the focused view or null.

Attributes

Remarks

Find the virtual view, such as a descendant of the host View, that has the specified focus type.

Java documentation for android.view.accessibility.AccessibilityNodeProvider.findFocus(int).

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

See also