Share via


AccessibilityNodeInfo.AddAction Method

Definition

Overloads

AddAction(AccessibilityNodeInfo+AccessibilityAction)

Adds an action that can be performed on the node.

AddAction(Action)
Obsolete.

Adds an action that can be performed on the node.

AddAction(AccessibilityNodeInfo+AccessibilityAction)

Adds an action that can be performed on the node.

[Android.Runtime.Register("addAction", "(Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;)V", "GetAddAction_Landroid_view_accessibility_AccessibilityNodeInfo_AccessibilityAction_Handler")]
public virtual void AddAction (Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction? action);
[<Android.Runtime.Register("addAction", "(Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;)V", "GetAddAction_Landroid_view_accessibility_AccessibilityNodeInfo_AccessibilityAction_Handler")>]
abstract member AddAction : Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction -> unit
override this.AddAction : Android.Views.Accessibility.AccessibilityNodeInfo.AccessibilityAction -> unit

Parameters

Attributes

Remarks

Java documentation for android.view.accessibility.AccessibilityNodeInfo.addAction(int).

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

AddAction(Action)

Caution

deprecated

Adds an action that can be performed on the node.

[Android.Runtime.Register("addAction", "(I)V", "GetAddAction_IHandler")]
[System.Obsolete("deprecated")]
public virtual void AddAction (Android.Views.Accessibility.Action action);
[<Android.Runtime.Register("addAction", "(I)V", "GetAddAction_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member AddAction : Android.Views.Accessibility.Action -> unit
override this.AddAction : Android.Views.Accessibility.Action -> unit

Parameters

action
Action

The action.

Attributes

Exceptions

If called from an AccessibilityService.

If the argument is not one of the standard actions.

Remarks

Adds an action that can be performed on the node.

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

This member is deprecated. This has been deprecated for #addAction(AccessibilityAction)

Java documentation for android.view.accessibility.AccessibilityNodeInfo.addAction(int).

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