Condividi tramite


View.PerformAccessibilityAction Method

Definition

Overloads

PerformAccessibilityAction(GlobalAction, Bundle)
Obsolete.

Performs the specified accessibility action on the view.

PerformAccessibilityAction(Action, Bundle)

Performs the specified accessibility action on the view.

PerformAccessibilityAction(GlobalAction, Bundle)

Caution

This method uses wrong enum type. Please use PerformAccessibilityAction(Action) instead.

Performs the specified accessibility action on the view.

[System.Obsolete("This method uses wrong enum type. Please use PerformAccessibilityAction(Action) instead.")]
public bool PerformAccessibilityAction (Android.AccessibilityServices.GlobalAction action, Android.OS.Bundle arguments);
[<System.Obsolete("This method uses wrong enum type. Please use PerformAccessibilityAction(Action) instead.")>]
member this.PerformAccessibilityAction : Android.AccessibilityServices.GlobalAction * Android.OS.Bundle -> bool

Parameters

action
GlobalAction

The action to perform.

arguments
Bundle

Optional action arguments.

Returns

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

PerformAccessibilityAction(Action, Bundle)

Performs the specified accessibility action on the view.

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

Parameters

action
Action

The action to perform.

arguments
Bundle

Optional action arguments.

Returns

Whether the action was performed.

Attributes

Remarks

Performs the specified accessibility action on the view. For possible accessibility actions look at AccessibilityNodeInfo.

If an AccessibilityDelegate has been specified via calling #setAccessibilityDelegate(AccessibilityDelegate) its AccessibilityDelegate#performAccessibilityAction(View, int, Bundle) is responsible for handling this call.

The default implementation will delegate AccessibilityNodeInfo#ACTION_SCROLL_BACKWARD and AccessibilityNodeInfo#ACTION_SCROLL_FORWARD to nested scrolling parents if #isNestedScrollingEnabled() nested scrolling is enabled on this view.

<b>Note:</b> Avoid setting accessibility focus with AccessibilityNodeInfo#ACTION_ACCESSIBILITY_FOCUS. This is intended to be controlled by screen readers. Apps changing focus can confuse screen readers, so the resulting behavior can vary by device and screen reader version.

Java documentation for android.view.View.performAccessibilityAction(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