Stay organized with collections
Save and categorize content based on your preferences.
ApplicationInfoFlags
class ApplicationInfoFlags
Specific flags used for retrieving application info.
Summary
Public methods
getValue
fun getValue(): Long
of
static fun of(value: Long): PackageManager.ApplicationInfoFlags
Parameters |
value |
Long: Value is either 0 or a combination of android.content.pm.PackageManager#GET_META_DATA , android.content.pm.PackageManager#GET_SHARED_LIBRARY_FILES , android.content.pm.PackageManager#MATCH_UNINSTALLED_PACKAGES , android.content.pm.PackageManager#MATCH_SYSTEM_ONLY , android.content.pm.PackageManager.MATCH_DEBUG_TRIAGED_MISSING, android.content.pm.PackageManager#MATCH_DISABLED_COMPONENTS , android.content.pm.PackageManager#MATCH_DISABLED_UNTIL_USED_COMPONENTS , android.content.pm.PackageManager.MATCH_INSTANT, android.content.pm.PackageManager.MATCH_STATIC_SHARED_AND_SDK_LIBRARIES, 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_APEX , and android.content.pm.PackageManager#MATCH_ARCHIVED_PACKAGES |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# PackageManager.ApplicationInfoFlags\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nApplicationInfoFlags\n====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/content/pm/PackageManager.ApplicationInfoFlags \"View this page in Java\") \n\n```\nclass ApplicationInfoFlags\n```\n\n|---|-------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.content.pm.PackageManager.ApplicationInfoFlags](#) |\n\nSpecific flags used for retrieving application info.\n\nSummary\n-------\n\n| Public methods ||\n|------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [getValue](#getValue())`()` \u003cbr /\u003e |\n| static [PackageManager.ApplicationInfoFlags](#) | [of](#of(kotlin.Long))`(`value:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getValue\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getValue(): Long\n``` \n\n### of\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun of(value: Long): PackageManager.ApplicationInfoFlags\n```\n\n| Parameters ||\n|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `value` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html): Value is either `0` or a combination of [android.content.pm.PackageManager#GET_META_DATA](/reference/kotlin/android/content/pm/PackageManager#GET_META_DATA:kotlin.Int), [android.content.pm.PackageManager#GET_SHARED_LIBRARY_FILES](/reference/kotlin/android/content/pm/PackageManager#GET_SHARED_LIBRARY_FILES:kotlin.Int), [android.content.pm.PackageManager#MATCH_UNINSTALLED_PACKAGES](/reference/kotlin/android/content/pm/PackageManager#MATCH_UNINSTALLED_PACKAGES:kotlin.Int), [android.content.pm.PackageManager#MATCH_SYSTEM_ONLY](/reference/kotlin/android/content/pm/PackageManager#MATCH_SYSTEM_ONLY:kotlin.Int), android.content.pm.PackageManager.MATCH_DEBUG_TRIAGED_MISSING, [android.content.pm.PackageManager#MATCH_DISABLED_COMPONENTS](/reference/kotlin/android/content/pm/PackageManager#MATCH_DISABLED_COMPONENTS:kotlin.Int), [android.content.pm.PackageManager#MATCH_DISABLED_UNTIL_USED_COMPONENTS](/reference/kotlin/android/content/pm/PackageManager#MATCH_DISABLED_UNTIL_USED_COMPONENTS:kotlin.Int), android.content.pm.PackageManager.MATCH_INSTANT, android.content.pm.PackageManager.MATCH_STATIC_SHARED_AND_SDK_LIBRARIES, [android.content.pm.PackageManager#GET_DISABLED_UNTIL_USED_COMPONENTS](/reference/kotlin/android/content/pm/PackageManager#GET_DISABLED_UNTIL_USED_COMPONENTS:kotlin.Int), [android.content.pm.PackageManager#GET_UNINSTALLED_PACKAGES](/reference/kotlin/android/content/pm/PackageManager#GET_UNINSTALLED_PACKAGES:kotlin.Int), android.content.pm.PackageManager.MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS, [android.content.pm.PackageManager#MATCH_APEX](/reference/kotlin/android/content/pm/PackageManager#MATCH_APEX:kotlin.Int), and [android.content.pm.PackageManager#MATCH_ARCHIVED_PACKAGES](/reference/kotlin/android/content/pm/PackageManager#MATCH_ARCHIVED_PACKAGES:kotlin.Long) |\n\n| Return ||\n|------------------------------------------|------------------------------|\n| [PackageManager.ApplicationInfoFlags](#) | This value cannot be `null`. |"]]