Share via


AccessibilityNodeInfo.VisibleToUser Property

Definition

Gets whether this node is visible to the user. -or- Sets whether this node is visible to the user.

public virtual bool VisibleToUser { [Android.Runtime.Register("isVisibleToUser", "()Z", "GetIsVisibleToUserHandler")] get; [Android.Runtime.Register("setVisibleToUser", "(Z)V", "GetSetVisibleToUser_ZHandler")] set; }
[<get: Android.Runtime.Register("isVisibleToUser", "()Z", "GetIsVisibleToUserHandler")>]
[<set: Android.Runtime.Register("setVisibleToUser", "(Z)V", "GetSetVisibleToUser_ZHandler")>]
member this.VisibleToUser : bool with get, set

Property Value

Whether the node is visible to the user.

Attributes

Exceptions

If called from an AccessibilityService.

Remarks

Property getter documentation:

Gets whether this node is visible to the user.

Between Build.VERSION_CODES#JELLY_BEAN API 16 and Build.VERSION_CODES#Q API 29, this method may incorrectly return false when magnification is enabled. On other versions, a node is considered visible even if it is not on the screen because magnification is active.

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

Property setter documentation:

Sets whether this node is visible to the user.

<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.setVisibleToUser(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