Partager via


AccessibilityService.PerformGlobalAction(GlobalAction) Method

Definition

Performs a global action.

[Android.Runtime.Register("performGlobalAction", "(I)Z", "")]
public bool PerformGlobalAction (Android.AccessibilityServices.GlobalAction action);
[<Android.Runtime.Register("performGlobalAction", "(I)Z", "")>]
member this.PerformGlobalAction : Android.AccessibilityServices.GlobalAction -> bool

Parameters

action
GlobalAction

The action to perform.

Returns

Whether the action was successfully performed.

        Perform actions using ids like the id constants referenced below:
Attributes

Remarks

Performs a global action. Such an action can be performed at any moment regardless of the current application or user location in that application. For example going back, going home, opening recents, etc.

Note: The global action ids themselves give no information about the current availability of their corresponding actions. To determine if a global action is available, use #getSystemActions()

Java documentation for android.accessibilityservice.AccessibilityService.performGlobalAction(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

See also