Android.AccessibilityServices.AccessibilityService.FindFocus Method
Find the view that has the specified focus type.

Syntax

[Android.Runtime.Register("findFocus", "(I)Landroid/view/accessibility/AccessibilityNodeInfo;", "GetFindFocus_IHandler")]
public virtual Android.Views.Accessibility.AccessibilityNodeInfo FindFocus ([Android.Runtime.GeneratedEnum] Android.Views.Accessibility.NodeFocus focus)

See Also

Android.Views.Accessibility.AccessibilityNodeInfo.FocusInput
Android.Views.Accessibility.AccessibilityNodeInfo.FocusAccessibility

Parameters

focus
The focus to find. One of Android.Views.Accessibility.AccessibilityNodeInfo.FocusInput or Android.Views.Accessibility.AccessibilityNodeInfo.FocusAccessibility.

Returns

Documentation for this section has not yet been entered.

Remarks

Find the view that has the specified focus type. The search is performed across all windows.

Note: In order to access the windows your service has to declare the capability to retrieve window content by setting the NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#AccessibilityService_canRetrieveWindowContent property in its meta-data. For details refer to AccessibilityService.ServiceMetaData. Also the service has to opt-in to retrieve the interactive windows by setting the AccessibilityServiceInfo.FlagRetrieveInteractiveWindows flag.Otherwise, the search will be performed only in the active window.

[Android Documentation]

Requirements

Namespace: Android.AccessibilityServices
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4