Språk

PackageContextFlags Enum

Definition

Specifies options for creating a package context.

This enumeration supports a bitwise combination of its member values.

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

Fields

Name Value Description
IncludeCode 1

Flag for use with CreatePackageContext(String, PackageContextFlags): include the application code with the context.

IgnoreSecurity 2

Flag for use with CreatePackageContext(String, PackageContextFlags): bypass the security check for loading code from the requested package. Use with IncludeCode to load code even when it is unsafe to do so. Use with extreme care!

Restricted 4

Flag for use with CreatePackageContext(String, PackageContextFlags): a restricted context may disable specific features.

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.

Java documentation for android.content.Context.

Applies to