ActivityFlags 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.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum ActivityFlags
[<System.Flags>]
type ActivityFlags =
- Inheritance
-
ActivityFlags
- Attributes
Fields
Name | Value | Description |
---|---|---|
GrantReadUriPermission | 1 | If set, the recipient of this Intent will be granted permission to perform read operations on the Uri in the Intent's data and any URIs specified in its ClipData. |
GrantWriteUriPermission | 2 | If set, the recipient of this Intent will be granted permission to perform write operations on the Uri in the Intent's data and any URIs specified in its ClipData. |
FromBackground | 4 | Can be set by the caller to indicate that this Intent is coming from a background operation, not from direct user interaction. |
DebugLogResolution | 8 | A flag you can enable for debugging: when set, log messages will be printed during the resolution of this intent to show you what has been found to create the final resolved list. |
ExcludeStoppedPackages | 16 | If set, this intent will not match any components in packages that are currently stopped. |
IncludeStoppedPackages | 32 | If set, this intent will always match any components in packages that are currently stopped. |
GrantPersistableUriPermission | 64 | |
GrantPrefixUriPermission | 128 | |
DirectBootAuto | 256 | |
RequireDefault | 512 | |
RequireNonBrowser | 1024 | |
MatchExternal | 2048 | |
LaunchAdjacent | 4096 | |
RetainInRecents | 8192 | |
TaskOnHome | 16384 | |
ClearTask | 32768 | |
NoAnimation | 65536 | |
ReorderToFront | 131072 | |
NoUserAction | 262144 | |
ClearWhenTaskReset | 524288 | |
NewDocument | 524288 | |
LaunchedFromHistory | 1048576 | This flag is not normally set by application code, but set for you by the system if this activity is being launched from history (longpress home key). |
ReceiverVisibleToInstantApps | 2097152 | |
ResetTaskIfNeeded | 2097152 | If set, and this activity is either being started in a new task or bringing to the top an existing task, then it will be launched as the front door of the task. |
BroughtToFront | 4194304 | |
ExcludeFromRecents | 8388608 | If set, the new activity is not kept in the list of recently launched activities. |
PreviousIsTop | 16777216 | |
ForwardResult | 33554432 | If set and this intent is being used to launch a new activity from an existing one, then the reply target of the existing activity will be transfered to the new activity. |
ClearTop | 67108864 | |
MultipleTask | 134217728 | Do not use this flag unless you are implementing your own top-level application launcher. NewTask always Because the default system does not include graphical task management, you should not use this flag unless you provide some way for a user to return back to the tasks you have launched. See Tasks and Back Stack for more information about tasks. |
ReceiverNoAbort | 134217728 | |
NewTask | 268435456 | |
ReceiverForeground | 268435456 | If set, when sending a broadcast the recipient is allowed to run at foreground priority, with a shorter timeout interval. |
ReceiverReplacePending | 536870912 | |
SingleTop | 536870912 | If set, the activity will not be launched if it is already running at the top of the history stack. |
NoHistory | 1073741824 | If set, the new activity is not kept in the history stack. |
ReceiverRegisteredOnly | 1073741824 | If set, when sending a broadcast only registered receivers will be called -- no BroadcastReceiver components will be launched. |
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.