Share via


AccessibilityNodeInfo.Focusable Property

Definition

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

public virtual bool Focusable { [Android.Runtime.Register("isFocusable", "()Z", "GetIsFocusableHandler")] get; [Android.Runtime.Register("setFocusable", "(Z)V", "GetSetFocusable_ZHandler")] set; }
[<get: Android.Runtime.Register("isFocusable", "()Z", "GetIsFocusableHandler")>]
[<set: Android.Runtime.Register("setFocusable", "(Z)V", "GetSetFocusable_ZHandler")>]
member this.Focusable : bool with get, set

Property Value

True if the node is focusable.

Attributes

Exceptions

If called from an AccessibilityService.

Remarks

Property getter documentation:

Gets whether this node is focusable.

In the View system, this typically maps to View#isFocusable().

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

Property setter documentation:

Sets whether this node is focusable.

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

To mark a node as explicitly focusable for a screen reader, consider using #setScreenReaderFocusable(boolean) instead.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.setFocusable(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