Added in API level 33

PackageInfoFlags


class PackageInfoFlags
kotlin.Any
   ↳ android.content.pm.PackageManager.PackageInfoFlags

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

Summary

Public methods
Long

static PackageManager.PackageInfoFlags
of(value: Long)

Public methods

getValue

Added in API level 33
fun getValue(): Long

of

Added in API level 33
static fun of(value: Long): PackageManager.PackageInfoFlags
Parameters
value Long: Value is either 0 or a combination of android.content.pm.PackageManager#GET_ACTIVITIES, android.content.pm.PackageManager#GET_CONFIGURATIONS, android.content.pm.PackageManager#GET_GIDS, android.content.pm.PackageManager#GET_INSTRUMENTATION, android.content.pm.PackageManager#GET_INTENT_FILTERS, android.content.pm.PackageManager#GET_META_DATA, android.content.pm.PackageManager#GET_PERMISSIONS, android.content.pm.PackageManager#GET_PROVIDERS, android.content.pm.PackageManager#GET_RECEIVERS, android.content.pm.PackageManager#GET_SERVICES, android.content.pm.PackageManager#GET_SHARED_LIBRARY_FILES, android.content.pm.PackageManager#GET_SIGNATURES, android.content.pm.PackageManager#GET_SIGNING_CERTIFICATES, android.content.pm.PackageManager#GET_URI_PERMISSION_PATTERNS, android.content.pm.PackageManager#MATCH_UNINSTALLED_PACKAGES, android.content.pm.PackageManager#MATCH_DISABLED_COMPONENTS, android.content.pm.PackageManager#MATCH_DISABLED_UNTIL_USED_COMPONENTS, android.content.pm.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, android.content.pm.PackageManager#MATCH_APEX, android.content.pm.PackageManager#MATCH_ARCHIVED_PACKAGES, android.content.pm.PackageManager#GET_DISABLED_COMPONENTS, android.content.pm.PackageManager#GET_DISABLED_UNTIL_USED_COMPONENTS, android.content.pm.PackageManager#GET_UNINSTALLED_PACKAGES, android.content.pm.PackageManager.MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS, android.content.pm.PackageManager#MATCH_DIRECT_BOOT_AWARE, android.content.pm.PackageManager#MATCH_DIRECT_BOOT_UNAWARE, and android.content.pm.PackageManager#GET_ATTRIBUTIONS_LONG
Return
PackageManager.PackageInfoFlags This value cannot be null.