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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more