MediaDrm.IOnKeyStatusChangeListener.OnKeyStatusChange Method

Definition

Called when the keys in a session change status, such as when the license is renewed or expires.

[Android.Runtime.Register("onKeyStatusChange", "(Landroid/media/MediaDrm;[BLjava/util/List;Z)V", "GetOnKeyStatusChange_Landroid_media_MediaDrm_arrayBLjava_util_List_ZHandler:Android.Media.MediaDrm/IOnKeyStatusChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)]
public void OnKeyStatusChange (Android.Media.MediaDrm md, byte[] sessionId, System.Collections.Generic.IList<Android.Media.MediaDrm.KeyStatus> keyInformation, bool hasNewUsableKey);
[<Android.Runtime.Register("onKeyStatusChange", "(Landroid/media/MediaDrm;[BLjava/util/List;Z)V", "GetOnKeyStatusChange_Landroid_media_MediaDrm_arrayBLjava_util_List_ZHandler:Android.Media.MediaDrm/IOnKeyStatusChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)>]
abstract member OnKeyStatusChange : Android.Media.MediaDrm * byte[] * System.Collections.Generic.IList<Android.Media.MediaDrm.KeyStatus> * bool -> unit

Parameters

md
MediaDrm

the MediaDrm object on which the event occurred

sessionId
Byte[]

the DRM session ID on which the event occurred

keyInformation
IList<MediaDrm.KeyStatus>

a list of MediaDrm.KeyStatus instances indicating the status for each key in the session

hasNewUsableKey
Boolean

indicates if a key has been added that is usable, which may trigger an attempt to resume playback on the media stream if it is currently blocked waiting for a key.

Attributes

Remarks

Called when the keys in a session change status, such as when the license is renewed or expires.

Java documentation for android.media.MediaDrm.OnKeyStatusChangeListener.onKeyStatusChange(android.media.MediaDrm, byte[], java.util.List<android.media.MediaDrm.KeyStatus>, boolean).

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