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
IntoExisting
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.
Always
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.
None
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.
Never
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
sourceimpl Clone for DocumentLaunchMode
impl Clone for DocumentLaunchMode
sourcefn clone(&self) -> DocumentLaunchMode
fn clone(&self) -> DocumentLaunchMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DocumentLaunchMode
impl Debug for DocumentLaunchMode
sourceimpl Default for DocumentLaunchMode
impl Default for DocumentLaunchMode
sourceimpl<'de> Deserialize<'de> for DocumentLaunchMode
impl<'de> Deserialize<'de> for DocumentLaunchMode
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for DocumentLaunchMode
impl Serialize for DocumentLaunchMode
sourceimpl YaDeserialize for DocumentLaunchMode
impl YaDeserialize for DocumentLaunchMode
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
sourceimpl YaSerialize for DocumentLaunchMode
impl YaSerialize for DocumentLaunchMode
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes(
&self,
source_attributes: Vec<OwnedAttribute>,
source_namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl StructuralPartialEq for DocumentLaunchMode
Auto Trait Implementations
impl RefUnwindSafe for DocumentLaunchMode
impl Send for DocumentLaunchMode
impl Sync for DocumentLaunchMode
impl Unpin for DocumentLaunchMode
impl UnwindSafe for DocumentLaunchMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more