DrmManagerClient.SaveRights(DrmRights, String, String) 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.
Saves rights to a specified path and associates that path with the content path.
[Android.Runtime.Register("saveRights", "(Landroid/drm/DrmRights;Ljava/lang/String;Ljava/lang/String;)I", "GetSaveRights_Landroid_drm_DrmRights_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual Android.Drm.DrmManagerClientErrorCode SaveRights (Android.Drm.DrmRights? drmRights, string? rightsPath, string? contentPath);
[<Android.Runtime.Register("saveRights", "(Landroid/drm/DrmRights;Ljava/lang/String;Ljava/lang/String;)I", "GetSaveRights_Landroid_drm_DrmRights_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member SaveRights : Android.Drm.DrmRights * string * string -> Android.Drm.DrmManagerClientErrorCode
override this.SaveRights : Android.Drm.DrmRights * string * string -> Android.Drm.DrmManagerClientErrorCode
Parameters
- drmRights
- DrmRights
The DrmRights
to be saved.
- rightsPath
- String
File path where rights will be saved.
- contentPath
- String
File path where content is saved.
Returns
ERROR_NONE for success; ERROR_UNKNOWN for failure.
- Attributes
Exceptions
If the call failed to save rights information at the given
rightsPath
.
Remarks
Saves rights to a specified path and associates that path with the content path.
<p class="note"><strong>Note:</strong> For OMA or WM-DRM, rightsPath
and contentPath
can be null.</p>
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.