DrmStore.ConstraintsColumns
public
static
interface
DrmStore.ConstraintsColumns
android.drm.DrmStore.ConstraintsColumns |
Interface definition for the columns that represent DRM constraints.
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.
Summary
Constants | |
---|---|
String |
EXTENDED_METADATA
This is a user-defined constraint. |
String |
LICENSE_AVAILABLE_TIME
This is a duration-based constaint. |
String |
LICENSE_EXPIRY_TIME
This is a date-based constaint. |
String |
LICENSE_START_TIME
This is a date-based constraint. |
String |
MAX_REPEAT_COUNT
This is a count-based constraint. |
String |
REMAINING_REPEAT_COUNT
This is a count-based constraint. |
Constants
EXTENDED_METADATA
public static final String EXTENDED_METADATA
This is a user-defined constraint. It represents the additional constraint using extended metadata.
Type: TEXT
Constant Value: "extended_metadata"
LICENSE_AVAILABLE_TIME
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
Constant Value: "license_available_time"
LICENSE_EXPIRY_TIME
public static final String LICENSE_EXPIRY_TIME
This is a date-based constaint. It represents the time after which
an action
can not be performed on
the rights-protected content.
Type: TEXT
Constant Value: "license_expiry_time"
LICENSE_START_TIME
public static final String LICENSE_START_TIME
This is a date-based constraint. It represents the time before which
an action
can be performed on
the rights-protected content.
Type: TEXT
Constant Value: "license_start_time"
MAX_REPEAT_COUNT
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
.
Type: INTEGER
Constant Value: "max_repeat_count"
REMAINING_REPEAT_COUNT
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
.
Type: INTEGER
Constant Value: "remaining_repeat_count"