共用方式為


MediaDrm.IOnSessionLostStateListener.OnSessionLostState Method

Definition

Called when session state has lost state, to inform the app about the condition so it can close the session and open a new one to resume operation.

[Android.Runtime.Register("onSessionLostState", "(Landroid/media/MediaDrm;[B)V", "GetOnSessionLostState_Landroid_media_MediaDrm_arrayBHandler:Android.Media.MediaDrm/IOnSessionLostStateListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)]
public void OnSessionLostState (Android.Media.MediaDrm md, byte[] sessionId);
[<Android.Runtime.Register("onSessionLostState", "(Landroid/media/MediaDrm;[B)V", "GetOnSessionLostState_Landroid_media_MediaDrm_arrayBHandler:Android.Media.MediaDrm/IOnSessionLostStateListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=29)>]
abstract member OnSessionLostState : Android.Media.MediaDrm * byte[] -> unit

Parameters

md
MediaDrm

the MediaDrm object on which the event occurred

sessionId
Byte[]

the DRM session ID on which the event occurred

Attributes

Remarks

Called when session state has lost state, to inform the app about the condition so it can close the session and open a new one to resume operation.

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