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, int) : ignore any security restrictions on the Context being requested, allowing it to always be loaded. For use with CONTEXT_INCLUDE_CODE to allow code to be loaded into a process even when it isn't safe 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