Stay organized with collections
Save and categorize content based on your preferences.
@Retention(value = RetentionPolicy.SOURCE)
@IntDef(value = [ContentAvailability.AVAILABILITY_UNKNOWN, ContentAvailability.AVAILABILITY_AVAILABLE, ContentAvailability.AVAILABILITY_FREE_WITH_SUBSCRIPTION, ContentAvailability.AVAILABILITY_PAID_CONTENT])
annotation ContentAvailability
Availability of the content.
Summary
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-10 UTC.
[null,null,["Last updated 2025-01-10 UTC."],[],[],null,["# ContentAvailability\n===================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/com/google/android/engage/common/datamodel/ContentAvailability \"View this page in Java\") \n\n\n```\n@Retention(value = RetentionPolicy.SOURCE)\n@IntDef(value = [ContentAvailability.AVAILABILITY_UNKNOWN, ContentAvailability.AVAILABILITY_AVAILABLE, ContentAvailability.AVAILABILITY_FREE_WITH_SUBSCRIPTION, ContentAvailability.AVAILABILITY_PAID_CONTENT])\nannotation ContentAvailability\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAvailability of the content.\n\nSummary\n-------\n\n| ### Constants |\n|------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `const `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [AVAILABILITY_AVAILABLE](/reference/kotlin/com/google/android/engage/common/datamodel/ContentAvailability#AVAILABILITY_AVAILABLE())` = 1` |\n| `const `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [AVAILABILITY_FREE_WITH_SUBSCRIPTION](/reference/kotlin/com/google/android/engage/common/datamodel/ContentAvailability#AVAILABILITY_FREE_WITH_SUBSCRIPTION())` = 2` |\n| `const `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [AVAILABILITY_PAID_CONTENT](/reference/kotlin/com/google/android/engage/common/datamodel/ContentAvailability#AVAILABILITY_PAID_CONTENT())` = 3` |\n| `const `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [AVAILABILITY_UNKNOWN](/reference/kotlin/com/google/android/engage/common/datamodel/ContentAvailability#AVAILABILITY_UNKNOWN())` = 0` |\n\nConstants\n---------\n\n### AVAILABILITY_AVAILABLE\n\n```\nconst val AVAILABILITY_AVAILABLE = 1: Int\n``` \n\n### AVAILABILITY_FREE_WITH_SUBSCRIPTION\n\n```\nconst val AVAILABILITY_FREE_WITH_SUBSCRIPTION = 2: Int\n``` \n\n### AVAILABILITY_PAID_CONTENT\n\n```\nconst val AVAILABILITY_PAID_CONTENT = 3: Int\n``` \n\n### AVAILABILITY_UNKNOWN\n\n```\nconst val AVAILABILITY_UNKNOWN = 0: Int\n```"]]