AccessibilityNodeInfo.Focused Property

Definition

Gets whether this node is focused. -or- Sets whether this node is focused.

public virtual bool Focused { [Android.Runtime.Register("isFocused", "()Z", "GetIsFocusedHandler")] get; [Android.Runtime.Register("setFocused", "(Z)V", "GetSetFocused_ZHandler")] set; }
[<get: Android.Runtime.Register("isFocused", "()Z", "GetIsFocusedHandler")>]
[<set: Android.Runtime.Register("setFocused", "(Z)V", "GetSetFocused_ZHandler")>]
member this.Focused : bool with get, set

Property Value

True if the node is focused.

Attributes

Exceptions

If called from an AccessibilityService.

Remarks

Property getter documentation:

Gets whether this node is focused.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.isFocused().

Property setter documentation:

Sets whether this node is focused.

<strong>Note:</strong> Cannot be called from an android.accessibilityservice.AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.setFocused(boolean).

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