Enum android_manifest::DocumentLaunchMode [−][src]
pub enum DocumentLaunchMode {
IntoExisting,
Always,
None,
Never,
}Expand description
Four values which produce the following effects when the user opens a document with the application
Variants
The system searches for a task whose base intent’s ComponentName and data URI
match those of the launching intent. If the system finds such a task, the
system clears the task, and restarts with the root activity receiving a call
to onNewIntent(android.content.Intent). If the system does not find such a
task, the system creates a new task.
The activity creates a new task for the document, even if the document is already
opened. This is the same as setting both the FLAG_ACTIVITY_NEW_DOCUMENT
and FLAG_ACTIVITY_MULTIPLE_TASK flags.
The activity does not create a new task for the activity. This is the default
value, which creates a new task only when FLAG_ACTIVITY_NEW_TASK
is set. The overview screen treats the activity as it would by
default: it displays a single task for the app, which resumes from
whatever activity the user last invoked.
This activity is not launched into a new document even if the Intent contains
FLAG_ACTIVITY_NEW_DOCUMENT. Setting this overrides the behavior of the
FLAG_ACTIVITY_NEW_DOCUMENT and FLAG_ACTIVITY_MULTIPLE_TASK flags, if
either of these are set in the activity, and the overview screen displays a
single task for the app, which resumes from whatever activity the user last
invoked.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
fn serialize_attributes(
&self,
source_attributes: Vec<OwnedAttribute>,
source_namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>[src]Auto Trait Implementations
impl RefUnwindSafe for DocumentLaunchModeimpl Send for DocumentLaunchModeimpl Sync for DocumentLaunchModeimpl Unpin for DocumentLaunchModeimpl UnwindSafe for DocumentLaunchModeBlanket Implementations
Mutably borrows from an owned value. Read more