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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.