Share via


MediaDrm.IOnEventListener.OnEvent Method

Definition

Called when an event occurs that requires the app to be notified

[Android.Runtime.Register("onEvent", "(Landroid/media/MediaDrm;[BII[B)V", "GetOnEvent_Landroid_media_MediaDrm_arrayBIIarrayBHandler:Android.Media.MediaDrm/IOnEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnEvent (Android.Media.MediaDrm md, byte[]? sessionId, Android.Media.MediaDrmEventType e, int extra, byte[]? data);
[<Android.Runtime.Register("onEvent", "(Landroid/media/MediaDrm;[BII[B)V", "GetOnEvent_Landroid_media_MediaDrm_arrayBIIarrayBHandler:Android.Media.MediaDrm/IOnEventListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnEvent : Android.Media.MediaDrm * byte[] * Android.Media.MediaDrmEventType * int * byte[] -> unit

Parameters

md
MediaDrm

the MediaDrm object on which the event occurred

sessionId
Byte[]

the DRM session ID on which the event occurred, or null if there is no session ID associated with the event.

e
MediaDrmEventType

indicates the event type

extra
Int32

an secondary error code

data
Byte[]

optional byte array of data that may be associated with the event

Attributes

Remarks

Called when an event occurs that requires the app to be notified

Java documentation for android.media.MediaDrm.OnEventListener.onEvent(android.media.MediaDrm, byte[], int, int, 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