Added in API level 33

PackageManager.PackageInfoFlags


public static final class PackageManager.PackageInfoFlags
extends Object

java.lang.Object
   ↳ android.content.pm.PackageManager.PackageInfoFlags


Specific flags used for retrieving package info. Example: PackageManager.getPackageInfo(packageName, PackageInfoFlags.of(0)

Summary

Public methods

long getValue()
static PackageManager.PackageInfoFlags of(long value)

Inherited methods

Public methods

getValue

Added in API level 33
public long getValue ()

Returns
long

of

Added in API level 33
public static PackageManager.PackageInfoFlags of (long value)

Parameters
value long: Value is either 0 or a combination of 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, android.content.pm.PackageManager.MATCH_FACTORY_ONLY, android.content.pm.PackageManager.MATCH_ANY_USER, android.content.pm.PackageManager.MATCH_DEBUG_TRIAGED_MISSING, android.content.pm.PackageManager.MATCH_INSTANT, PackageManager.MATCH_APEX, PackageManager.MATCH_ARCHIVED_PACKAGES, PackageManager.GET_DISABLED_COMPONENTS, PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS, PackageManager.GET_UNINSTALLED_PACKAGES, android.content.pm.PackageManager.MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS, PackageManager.MATCH_DIRECT_BOOT_AWARE, PackageManager.MATCH_DIRECT_BOOT_UNAWARE, and PackageManager.GET_ATTRIBUTIONS_LONG

Returns
PackageManager.PackageInfoFlags This value cannot be null.