Compartir a través de


AccessibilityNodeInfo.SetRequestInitialAccessibilityFocus(Boolean) Method

Definition

Sets whether the node has requested initial accessibility focus.

[Android.Runtime.Register("setRequestInitialAccessibilityFocus", "(Z)V", "GetSetRequestInitialAccessibilityFocus_ZHandler", ApiSince=34)]
public virtual void SetRequestInitialAccessibilityFocus (bool requestInitialAccessibilityFocus);
[<Android.Runtime.Register("setRequestInitialAccessibilityFocus", "(Z)V", "GetSetRequestInitialAccessibilityFocus_ZHandler", ApiSince=34)>]
abstract member SetRequestInitialAccessibilityFocus : bool -> unit
override this.SetRequestInitialAccessibilityFocus : bool -> unit

Parameters

requestInitialAccessibilityFocus
Boolean

True if the node requests to receive initial accessibility focus.

Attributes

Remarks

Sets whether the node has requested initial accessibility focus.

If the node #hasRequestInitialAccessibilityFocus, this node would be one of candidates to be accessibility focused when the window appears.

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