DrmManagerClient.AcquireRights(DrmInfoRequest) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Processes a given DrmInfoRequest
and returns the rights information asynchronously.
[Android.Runtime.Register("acquireRights", "(Landroid/drm/DrmInfoRequest;)I", "GetAcquireRights_Landroid_drm_DrmInfoRequest_Handler")]
public virtual Android.Drm.DrmManagerClientErrorCode AcquireRights (Android.Drm.DrmInfoRequest? drmInfoRequest);
[<Android.Runtime.Register("acquireRights", "(Landroid/drm/DrmInfoRequest;)I", "GetAcquireRights_Landroid_drm_DrmInfoRequest_Handler")>]
abstract member AcquireRights : Android.Drm.DrmInfoRequest -> Android.Drm.DrmManagerClientErrorCode
override this.AcquireRights : Android.Drm.DrmInfoRequest -> Android.Drm.DrmManagerClientErrorCode
Parameters
- drmInfoRequest
- DrmInfoRequest
The DrmInfoRequest
used to acquire the rights.
Returns
ERROR_NONE for success; ERROR_UNKNOWN for failure.
- Attributes
Remarks
Processes a given DrmInfoRequest
and returns the rights information asynchronously.
This is a utility method that consists of an #acquireDrmInfo(DrmInfoRequest) acquireDrmInfo()
and a #processDrmInfo(DrmInfo) processDrmInfo()
method call. This utility method can be used only if the selected DRM plug-in (agent) supports this sequence of calls. Some DRM agents, such as OMA, do not support this utility method, in which case an application must invoke #acquireDrmInfo(DrmInfoRequest) acquireDrmInfo()
and #processDrmInfo(DrmInfo) processDrmInfo()
separately.
Java documentation for android.drm.DrmManagerClient.acquireRights(android.drm.DrmInfoRequest)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.