GlobalAction Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates values returned by several types and taken as a parameter of several types.
public enum GlobalAction
type GlobalAction =
- Inheritance
-
GlobalAction
Fields
| Name | Value | Description |
|---|---|---|
| Back | 1 | Action to go back. |
| Home | 2 | Action to go home. |
| Recents | 3 | Action to open the recent apps. |
| Notifications | 4 | Action to open the notifications. |
| QuickSettings | 5 | Action to open the quick settings. |
| PowerDialog | 6 | Action to open the power long-press dialog. Android reference for 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. |
| ToggleSplitScreen | 7 | Action to toggle docking the current app's window. Note: It is effective only if it appears in getSystemActions(). 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. |
| LockScreen | 8 | Action to lock the screen Android reference for 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. |
| TakeScreenshot | 9 | Action to take a screenshot 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. |
| KeycodeHeadsetHook | 10 | Action to send the KEYCODE_HEADSETHOOK KeyEvent, which is used to answer and hang up calls and play and stop media. Calling takes priority. If there is an incoming call, this action can be used to answer that call, and if there is an ongoing call, to hang up on that call. 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. |
| AccessibilityButton | 11 | Action to trigger the Accessibility Button 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. |
| AccessibilityButtonChooser | 12 | Action to bring up the Accessibility Button's chooser menu 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. |
| AccessibilityShortcut | 13 | Action to trigger the Accessibility Shortcut. This shortcut has a hardware trigger and can be activated by holding down the two volume keys. 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. |
| AccessibilityAllApps | 14 | Action to show Launcher's all apps. 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. |
| DismissNotificationShade | 15 | Action to dismiss the notification shade 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. |
| DpadUp | 16 | Action to trigger dpad up keyevent. Android reference for 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. |
| DpadDown | 17 | Action to trigger dpad down keyevent. Android reference for 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. |
| DpadLeft | 18 | Action to trigger dpad left keyevent. Android reference for 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. |
| DpadRight | 19 | Action to trigger dpad right keyevent. Android reference for 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. |
| DpadCenter | 20 | Action to trigger dpad center keyevent. Android reference for 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. |
| Menu | 21 | Action to trigger menu key event. Android reference for 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. |
| MediaPlayPause | 22 | Action to trigger media play/pause key event. 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. |
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.