Enum android_manifest::LockTaskMode [−][src]
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
Default value
. This is the default value. Tasks don’t launch into lock task mode
but can be placed there by calling startLockTask()
.
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
.
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.
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
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 LockTaskMode
impl Send for LockTaskMode
impl Sync for LockTaskMode
impl Unpin for LockTaskMode
impl UnwindSafe for LockTaskMode
Blanket Implementations
Mutably borrows from an owned value. Read more