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.

C#
[System.Obsolete("This method uses wrong enum type. Please use PerformAccessibilityAction(Action) instead.")]
public bool PerformAccessibilityAction (Android.AccessibilityServices.GlobalAction action, Android.OS.Bundle arguments);

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions (Obsolete)
.NET for Android (.NET for Android API 34, .NET for Android API 35)

PerformAccessibilityAction(Action, Bundle)

Performs the specified accessibility action on the view.

C#
[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);

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35