Enum android_manifest::LockTaskMode
source · pub enum LockTaskMode {
Normal,
Never,
IfWhitelisted,
Always,
}
Expand description
This value indicates how tasks rooted at this activity will behave in lockTask mode.
The value can be any one of the following R.attr.lockTaskMode
string values:
Variants§
Normal
Default value
. This is the default value. Tasks don’t launch into lock task mode
but can be placed there by calling startLockTask()
.
Never
Tasks don’t launch into lockTask mode, and the device user can’t pin these tasks from the overview screen.
Note
This mode is only available to system and privileged applications.
Non-privileged apps with this value are treated as normal
.
IfWhitelisted
If the DPC authorizes this package using
DevicePolicyManager.setLockTaskPackages()
, then this mode is identical to
always, except that the activity needs to call stopLockTask()
before being
able to finish if it is the last locked task. If the DPC does not authorize
this package then this mode is identical to normal.
Always
Tasks rooted at this activity always launch into lock task mode. If the
system is already in lock task mode when this task is launched then the
new task are launched on top of the current task. Tasks launched in
this mode can exit lock task mode by calling finish()
.
Note
This mode is only available to system and privileged
applications. Non-privileged apps with this value are treated as normal
.
Trait Implementations§
source§impl Clone for LockTaskMode
impl Clone for LockTaskMode
source§fn clone(&self) -> LockTaskMode
fn clone(&self) -> LockTaskMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LockTaskMode
impl Debug for LockTaskMode
source§impl Default for LockTaskMode
impl Default for LockTaskMode
source§fn default() -> LockTaskMode
fn default() -> LockTaskMode
source§impl<'de> Deserialize<'de> for LockTaskMode
impl<'de> Deserialize<'de> for LockTaskMode
source§fn 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>,
source§impl PartialEq<LockTaskMode> for LockTaskMode
impl PartialEq<LockTaskMode> for LockTaskMode
source§fn eq(&self, other: &LockTaskMode) -> bool
fn eq(&self, other: &LockTaskMode) -> bool
self
and other
values to be equal, and is used
by ==
.