PackageManager.PackageInfoFlags.Of Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Of(PackageInfoFlagsLong) |
Creates a package-query flag wrapper from the managed flag enum. |
| Of(Int64) |
Creates a package-query flag wrapper for the supplied 64-bit mask. |
Of(PackageInfoFlagsLong)
Creates a package-query flag wrapper from the managed flag enum.
public static Android.Content.PM.PackageManager.PackageInfoFlags Of(Android.Content.PM.PackageInfoFlagsLong value);
static member Of : Android.Content.PM.PackageInfoFlagsLong -> Android.Content.PM.PackageManager.PackageInfoFlags
Parameters
- value
- PackageInfoFlagsLong
The managed 64-bit package-query flags to wrap.
Returns
A new package-flags wrapper storing the enum's numeric mask.
Remarks
This overload converts the enum to a 64-bit integer and calls the numeric factory.
Applies to
Of(Int64)
Creates a package-query flag wrapper for the supplied 64-bit mask.
[Android.Runtime.Register("of", "(J)Landroid/content/pm/PackageManager$PackageInfoFlags;", "", ApiSince=33)]
public static Android.Content.PM.PackageManager.PackageInfoFlags Of(long value);
[<Android.Runtime.Register("of", "(J)Landroid/content/pm/PackageManager$PackageInfoFlags;", "", ApiSince=33)>]
static member Of : int64 -> Android.Content.PM.PackageManager.PackageInfoFlags
Parameters
- value
- Int64
Value is either 0 or a combination of the following: PackageManager.GET_ACTIVITIES; PackageManager.GET_CONFIGURATIONS; PackageManager.GET_GIDS; PackageManager.GET_INSTRUMENTATION; PackageManager.GET_INTENT_FILTERS; PackageManager.GET_META_DATA; PackageManager.GET_PERMISSIONS; PackageManager.GET_PROVIDERS; PackageManager.GET_RECEIVERS; PackageManager.GET_SERVICES; PackageManager.GET_SHARED_LIBRARY_FILES; PackageManager.GET_SIGNATURES; PackageManager.GET_SIGNING_CERTIFICATES; PackageManager.GET_URI_PERMISSION_PATTERNS; PackageManager.MATCH_UNINSTALLED_PACKAGES; PackageManager.MATCH_DISABLED_COMPONENTS; PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS; PackageManager.MATCH_SYSTEM_ONLY; PackageManager.MATCH_APEX; PackageManager.MATCH_ARCHIVED_PACKAGES; PackageManager.GET_DISABLED_COMPONENTS; PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS; PackageManager.GET_UNINSTALLED_PACKAGES; PackageManager.MATCH_DIRECT_BOOT_AWARE; PackageManager.MATCH_DIRECT_BOOT_UNAWARE; PackageManager.GET_ATTRIBUTIONS_LONG
Returns
A new package-flags wrapper storing the supplied mask.
- Attributes
Remarks
Android reference for android.content.pm.PackageManager.PackageInfoFlags.of.
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.