Interface definition for the columns that represent DRM constraints. android.drm.DrmManagerClient#getConstraints can be called by an application to find out the contraints on the actions that can be performed on right-protected content. The constants defined in this interface represent three most common types of constraints: count-based, date-based, and duration-based. Two or more constraints can be used at the same time to represent more sophisticated constraints. In addition, user-defined constraint, extended metadata, can be used if these three types of constraints are not sufficient.
This is a count-based constraint. It represents the remaining repeat count that can be performed on an action.
Type: INTEGER
Value: "remaining_repeat_count"
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,["# DrmStore.ConstraintsColumns\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nConstraintsColumns\n==================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/drm/DrmStore.ConstraintsColumns \"View this page in Java\") \n\n```\ninterface ConstraintsColumns\n```\n\n|----------------------------------------------|\n| [android.drm.DrmStore.ConstraintsColumns](#) |\n\n*** ** * ** ***\n\n| **This interface was deprecated in API level 30.**\n|\n| Deprecated in Java.\n\nInterface definition for the columns that represent DRM constraints. android.drm.DrmManagerClient#getConstraints can be called by an application to find out the contraints on the [actions](/reference/kotlin/android/drm/DrmStore.Action) that can be performed on right-protected content. The constants defined in this interface represent three most common types of constraints: count-based, date-based, and duration-based. Two or more constraints can be used at the same time to represent more sophisticated constraints. In addition, user-defined constraint, [extended metadata](#EXTENDED_METADATA:kotlin.String), can be used if these three types of constraints are not sufficient.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EXTENDED_METADATA](#EXTENDED_METADATA:kotlin.String) This is a user-defined constraint. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [LICENSE_AVAILABLE_TIME](#LICENSE_AVAILABLE_TIME:kotlin.String) This is a duration-based constaint. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [LICENSE_EXPIRY_TIME](#LICENSE_EXPIRY_TIME:kotlin.String) This is a date-based constaint. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [LICENSE_START_TIME](#LICENSE_START_TIME:kotlin.String) This is a date-based constraint. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [MAX_REPEAT_COUNT](#MAX_REPEAT_COUNT:kotlin.String) This is a count-based constraint. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [REMAINING_REPEAT_COUNT](#REMAINING_REPEAT_COUNT:kotlin.String) This is a count-based constraint. |\n\nConstants\n---------\n\n### EXTENDED_METADATA\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val EXTENDED_METADATA: String\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThis is a user-defined constraint. It represents the additional constraint using extended metadata.\n\nType: TEXT \n\n Value: \"extended_metadata\"\n\n### LICENSE_AVAILABLE_TIME\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val LICENSE_AVAILABLE_TIME: String\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThis is a duration-based constaint. It represents the available time left before the license expires.\n\nType: TEXT \n\n Value: \"license_available_time\"\n\n### LICENSE_EXPIRY_TIME\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val LICENSE_EXPIRY_TIME: String\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThis is a date-based constaint. It represents the time after which an [action](/reference/kotlin/android/drm/DrmStore.Action) can not be performed on the rights-protected content.\n\nType: TEXT \n\n Value: \"license_expiry_time\"\n\n### LICENSE_START_TIME\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val LICENSE_START_TIME: String\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThis is a date-based constraint. It represents the time before which an [action](/reference/kotlin/android/drm/DrmStore.Action) can be performed on the rights-protected content.\n\nType: TEXT \n\n Value: \"license_start_time\"\n\n### MAX_REPEAT_COUNT\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val MAX_REPEAT_COUNT: String\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThis is a count-based constraint. It represents the maximum repeat count that can be performed on an [action](/reference/kotlin/android/drm/DrmStore.Action).\n\nType: INTEGER \n\n Value: \"max_repeat_count\"\n\n### REMAINING_REPEAT_COUNT\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val REMAINING_REPEAT_COUNT: String\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThis is a count-based constraint. It represents the remaining repeat count that can be performed on an [action](/reference/kotlin/android/drm/DrmStore.Action).\n\nType: INTEGER \n\n Value: \"remaining_repeat_count\""]]