DrmRights
public
class
DrmRights
extends Object
| java.lang.Object | |
| ↳ | android.drm.DrmRights |
This class was deprecated
in API level 30.
Please use MediaDrm
An entity class that wraps the license information retrieved from the online DRM server.
A caller can instantiate a DrmRights object by first invoking the
DrmManagerClient.processDrmInfo(DrmInfo) method and then using the resulting
ProcessedData object to invoke the DrmRights.DrmRights(ProcessedData,String)
constructor.
A caller can also instantiate a DrmRights object by using the
DrmRights.DrmRights(String,String) constructor, which takes a path to a file
containing rights information instead of a ProcessedData.
Please note that the account id and subscription id is not mandatory by all DRM agents or plugins. When account id or subscription id is not required by the specific DRM agent or plugin, they can be either null, or an empty string, or any other don't-care string value.