Language

ComponentEnableOption Enum

Definition

Enumerates values returned by the DontKillApp, None, and DontKillApp members and taken as a parameter of several types.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum ComponentEnableOption
[<System.Flags>]
type ComponentEnableOption = 
Inheritance
ComponentEnableOption
Attributes

Fields

Name Value Description
None 0
DontKillApp 1

Flag parameter for setComponentEnabledSetting(android.content.ComponentName, int, int) to indicate that you don't want to kill the app containing the component. Be careful when you set this since changing component states can make the containing application's behavior unpredictable.

Android reference for android.content.pm.PackageManager.DONT_KILL_APP.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Synchronous 2

Flag parameter for setComponentEnabledSetting(android.content.ComponentName, int, int) to indicate that the given user's package restrictions state will be serialised to disk after the component state has been updated. Note that this is synchronous disk access, so calls using this flag should be run on a background thread.

Android reference for android.content.pm.PackageManager.SYNCHRONOUS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to