Sdílet prostřednictvím


AccessibilityNodeInfo.AccessibilityAction Constructors

Definition

Overloads

AccessibilityNodeInfo.AccessibilityAction(Int32, ICharSequence)

Creates a new AccessibilityAction.

AccessibilityNodeInfo.AccessibilityAction(Int32, String)

AccessibilityNodeInfo.AccessibilityAction(Int32, ICharSequence)

Creates a new AccessibilityAction.

[Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;)V", "")]
public AccessibilityAction (int actionId, Java.Lang.ICharSequence label);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;)V", "")>]
new Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction : int * Java.Lang.ICharSequence -> Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction

Parameters

actionId
Int32

The id for this action. This should either be one of the standard actions or a specific action for your app. In that case it is required to use a resource identifier.

label
ICharSequence

The label for the new AccessibilityAction.

Attributes

Remarks

Creates a new AccessibilityAction. For adding a standard action without a specific label, use the static constants.

You can also override the description for one the standard actions. Below is an example how to override the standard click action by adding a custom label:

AccessibilityAction action = new AccessibilityAction(
                      AccessibilityAction.ACTION_CLICK.getId(), getLocalizedLabel());
              node.addAction(action);

Java documentation for android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.AccessibilityNodeInfo$AccessibilityAction(int, java.lang.CharSequence).

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

AccessibilityNodeInfo.AccessibilityAction(Int32, String)

[Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;)V", "")]
public AccessibilityAction (int actionId, string label);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;)V", "")>]
new Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction : int * string -> Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction

Parameters

actionId
Int32
label
String
Attributes

Remarks

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