Share via


MediaDrm.RemoveOfflineLicense(Byte[]) Method

Definition

Normally offline licenses are released using a key request/response exchange using #getKeyRequest where the key type is KEY_TYPE_RELEASE, followed by #provideKeyResponse.

[Android.Runtime.Register("removeOfflineLicense", "([B)V", "", ApiSince=29)]
public void RemoveOfflineLicense (byte[] keySetId);
[<Android.Runtime.Register("removeOfflineLicense", "([B)V", "", ApiSince=29)>]
member this.RemoveOfflineLicense : byte[] -> unit

Parameters

keySetId
Byte[]

the id of the offline license to remove

Attributes

Remarks

Normally offline licenses are released using a key request/response exchange using #getKeyRequest where the key type is KEY_TYPE_RELEASE, followed by #provideKeyResponse. This allows the server to cryptographically confirm that the license has been removed and then adjust the count of offline licenses allocated to the device.

In some exceptional situations it may be necessary to directly remove offline licenses without notifying the server, which may be performed using this method.

Java documentation for android.media.MediaDrm.removeOfflineLicense(byte[]).

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.

Applies to