Flag class

Special flags that can be set on an intent to control how it is handled.

See https://developer.android.com/reference/android/content/Intent.html#setFlags(int) for the official documentation on Intent flags. The constants here mirror the existing android.content.Intent ones.

Constructors

Flag()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

FLAG_ACTIVITY_BROUGHT_TO_FRONT → const int
Specifies how an activity should be launched. Generally set by the system in conjunction with SINGLE_TASK.
FLAG_ACTIVITY_CLEAR_TASK → const int
Causes any existing tasks associated with the activity to be cleared.
FLAG_ACTIVITY_CLEAR_TOP → const int
Closes any activities on top of this activity and brings it to the front, if it's currently running.
FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET → const int
@deprecated Use FLAG_ACTIVITY_NEW_DOCUMENT instead when on API 21 or above.
FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS → const int
Keeps the activity from being listed with other recently launched activities.
FLAG_ACTIVITY_FORWARD_RESULT → const int
Forwards the result from this activity to the existing one.
FLAG_ACTIVITY_LAUNCH_ADJACENT → const int
Used in split-screen mode to set the launched activity adjacent to the launcher.
FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY → const int
Generally set by the system if the activity is being launched from history.
FLAG_ACTIVITY_MATCH_EXTERNAL → const int
Used in split-screen mode to set the launched activity adjacent to the launcher.
FLAG_ACTIVITY_MULTIPLE_TASK → const int
Creates and launches the activity into a new task. Should always be combined with FLAG_ACTIVITY_NEW_DOCUMENT or FLAG_ACTIVITY_NEW_TASK.
FLAG_ACTIVITY_NEW_DOCUMENT → const int
Opens a document into a new task rooted in this activity.
FLAG_ACTIVITY_NEW_TASK → const int
The launched activity starts a new task on the activity stack.
FLAG_ACTIVITY_NO_ANIMATION → const int
Prevents the system from playing an activity transition animation when launching this.
FLAG_ACTIVITY_NO_HISTORY → const int
Does not keep the launched activity in history.
FLAG_ACTIVITY_NO_USER_ACTION → const int
Prevents a typical callback from occuring when the activity is paused.
FLAG_ACTIVITY_PREVIOUS_IS_TOP → const int
Uses the previous activity as top when applicable.
FLAG_ACTIVITY_REORDER_TO_FRONT → const int
Brings any already instances of this activity to the front.
FLAG_ACTIVITY_RESET_TASK_IF_NEEDED → const int
Launches the activity in a way that resets the task in some cases.
FLAG_ACTIVITY_RETAIN_IN_RECENTS → const int
Keeps an entry in recent tasks. Used with FLAG_ACTIVITY_NEW_DOCUMENT.
FLAG_ACTIVITY_SINGLE_TOP → const int
Will not re-launch the activity if it is already at the top of the history stack.
FLAG_ACTIVITY_TASK_ON_HOME → const int
Places the activity on top of the home task. Must be used with FLAG_ACTIVITY_NEW_TASK.
FLAG_DEBUG_LOG_RESOLUTION → const int
Prints debug logs while the intent is resolving.
FLAG_EXCLUDE_STOPPED_PACKAGES → const int
Does not match to any stopped components.
FLAG_FROM_BACKGROUND → const int
Can be set by the caller to flag the intent as not being launched directly by the user.
FLAG_GRANT_PERSISTABLE_URI_PERMISSION → const int
Will persist the URI permision across device reboots.
FLAG_GRANT_PREFIX_URI_PERMISSION → const int
Applies the URI permission grant based on prefix matching.
FLAG_GRANT_READ_URI_PERMISSION → const int
Grants the intent listener permission to read extra data from the Intent's URI.
FLAG_GRANT_WRITE_URI_PERMISSION → const int
Grants the intent listener permission to write extra data from the Intent's URI.
FLAG_INCLUDE_STOPPED_PACKAGES → const int
Always matches stopped components. This is the default behavior.
FLAG_RECEIVER_FOREGROUND → const int
Allows the listener to run at a high priority.
FLAG_RECEIVER_NO_ABORT → const int
Doesn't allow listeners to cancel the broadcast.
FLAG_RECEIVER_REGISTERED_ONLY → const int
Only allows registered receivers to listen for the intent.
FLAG_RECEIVER_REPLACE_PENDING → const int
Will drop any pending broadcasts of this intent in favor of the newest one.
FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS → const int
Instant Apps will be able to listen for the intent (not the default behavior).