AccessibilityNodeInfo.PerformAction Method

Definition

Overloads

PerformAction(Action)

Performs an action on the node.

PerformAction(Action, Bundle)

Performs an action on the node.

PerformAction(Action)

Performs an action on the node.

[Android.Runtime.Register("performAction", "(I)Z", "GetPerformAction_IHandler")]
public virtual bool PerformAction (Android.Views.Accessibility.Action action);
[<Android.Runtime.Register("performAction", "(I)Z", "GetPerformAction_IHandler")>]
abstract member PerformAction : Android.Views.Accessibility.Action -> bool
override this.PerformAction : Android.Views.Accessibility.Action -> bool

Parameters

action
Action

The action to perform.

Returns

True if the action was performed.

Attributes

Exceptions

If called outside of an AccessibilityService.

Remarks

Performs an action on the node.

<strong>Note:</strong> An action can be performed only if the request is made from an android.accessibilityservice.AccessibilityService.

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

PerformAction(Action, Bundle)

Performs an action on the node.

[Android.Runtime.Register("performAction", "(ILandroid/os/Bundle;)Z", "GetPerformAction_ILandroid_os_Bundle_Handler")]
public virtual bool PerformAction (Android.Views.Accessibility.Action action, Android.OS.Bundle? arguments);
[<Android.Runtime.Register("performAction", "(ILandroid/os/Bundle;)Z", "GetPerformAction_ILandroid_os_Bundle_Handler")>]
abstract member PerformAction : Android.Views.Accessibility.Action * Android.OS.Bundle -> bool
override this.PerformAction : Android.Views.Accessibility.Action * Android.OS.Bundle -> bool

Parameters

action
Action

The action to perform.

arguments
Bundle

A bundle with additional arguments.

Returns

True if the action was performed.

Attributes

Exceptions

If called outside of an AccessibilityService.

Remarks

Performs an action on the node.

<strong>Note:</strong> An action can be performed only if the request is made from an android.accessibilityservice.AccessibilityService.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.performAction(int, android.os.Bundle).

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