Compartilhar via


MediaDrm.GetOfflineLicenseState(Byte[]) Method

Definition

Request the state of an offline license.

[Android.Runtime.Register("getOfflineLicenseState", "([B)I", "", ApiSince=29)]
public Android.Media.OfflineLicenseState GetOfflineLicenseState (byte[] keySetId);
[<Android.Runtime.Register("getOfflineLicenseState", "([B)I", "", ApiSince=29)>]
member this.GetOfflineLicenseState : byte[] -> Android.Media.OfflineLicenseState

Parameters

keySetId
Byte[]

selects the offline license

Returns

the offline license state

Attributes

Remarks

Request the state of an offline license. An offline license may be usable or inactive. The keys in a usable offline license are available for decryption. When the offline license state is inactive, the keys have been marked for release using #getKeyRequest with KEY_TYPE_RELEASE but the key response has not been received. The keys in an inactive offline license are not usable for decryption.

Java documentation for android.media.MediaDrm.getOfflineLicenseState(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