# DrmStore.ConstraintsColumns

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# DrmStore.ConstraintsColumns

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/drm/DrmStore.ConstraintsColumns "View this page in Kotlin")\|Java

`
public
static


interface
DrmStore.ConstraintsColumns
`  
`


`

|-----------------------------------------|
| android.drm.DrmStore.ConstraintsColumns |

<br />

*** ** * ** ***

Interface definition for the columns that represent DRM constraints.[DrmManagerClient.getConstraints()](https://developer.android.com/reference/android/drm/DrmManagerClient#getConstraints(android.net.Uri,%20int))can be called by an application to find out the contraints on the[actions](https://developer.android.com/reference/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](https://developer.android.com/reference/android/drm/DrmStore.ConstraintsColumns#EXTENDED_METADATA), can be used if these three types of constraints are not sufficient.

## Summary

|                                                                                                              ### Constants                                                                                                               ||
|--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | [EXTENDED_METADATA](https://developer.android.com/reference/android/drm/DrmStore.ConstraintsColumns#EXTENDED_METADATA) This is a user-defined constraint.            |
| [String](https://developer.android.com/reference/java/lang/String) | [LICENSE_AVAILABLE_TIME](https://developer.android.com/reference/android/drm/DrmStore.ConstraintsColumns#LICENSE_AVAILABLE_TIME) This is a duration-based constaint. |
| [String](https://developer.android.com/reference/java/lang/String) | [LICENSE_EXPIRY_TIME](https://developer.android.com/reference/android/drm/DrmStore.ConstraintsColumns#LICENSE_EXPIRY_TIME) This is a date-based constaint.           |
| [String](https://developer.android.com/reference/java/lang/String) | [LICENSE_START_TIME](https://developer.android.com/reference/android/drm/DrmStore.ConstraintsColumns#LICENSE_START_TIME) This is a date-based constraint.            |
| [String](https://developer.android.com/reference/java/lang/String) | [MAX_REPEAT_COUNT](https://developer.android.com/reference/android/drm/DrmStore.ConstraintsColumns#MAX_REPEAT_COUNT) This is a count-based constraint.               |
| [String](https://developer.android.com/reference/java/lang/String) | [REMAINING_REPEAT_COUNT](https://developer.android.com/reference/android/drm/DrmStore.ConstraintsColumns#REMAINING_REPEAT_COUNT) This is a count-based constraint.   |

## Constants

### EXTENDED_METADATA

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String EXTENDED_METADATA
```

This is a user-defined constraint. It represents the additional constraint using extended metadata.

Type: TEXT

<br />

Constant Value: "extended_metadata"  

### LICENSE_AVAILABLE_TIME

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String LICENSE_AVAILABLE_TIME
```

This is a duration-based constaint. It represents the available time left before the license expires.

Type: TEXT

<br />

Constant Value: "license_available_time"  

### LICENSE_EXPIRY_TIME

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String LICENSE_EXPIRY_TIME
```

This is a date-based constaint. It represents the time after which an[action](https://developer.android.com/reference/android/drm/DrmStore.Action)can not be performed on the rights-protected content.

Type: TEXT

<br />

Constant Value: "license_expiry_time"  

### LICENSE_START_TIME

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String LICENSE_START_TIME
```

This is a date-based constraint. It represents the time before which an[action](https://developer.android.com/reference/android/drm/DrmStore.Action)can be performed on the rights-protected content.

Type: TEXT

<br />

Constant Value: "license_start_time"  

### MAX_REPEAT_COUNT

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String MAX_REPEAT_COUNT
```

This is a count-based constraint. It represents the maximum repeat count that can be performed on an[action](https://developer.android.com/reference/android/drm/DrmStore.Action).

Type: INTEGER

<br />

Constant Value: "max_repeat_count"  

### REMAINING_REPEAT_COUNT

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final String REMAINING_REPEAT_COUNT
```

This is a count-based constraint. It represents the remaining repeat count that can be performed on an[action](https://developer.android.com/reference/android/drm/DrmStore.Action).

Type: INTEGER

<br />

Constant Value: "remaining_repeat_count"