Added in API level 29
OnSessionLostStateListener
interface OnSessionLostStateListener
android.media.MediaDrm.OnSessionLostStateListener |
Interface definition for a callback to be invoked when the session state has been lost and is now invalid
Summary
Public methods | |
---|---|
abstract Unit |
onSessionLostState(md: MediaDrm, sessionId: ByteArray) 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. |
Public methods
onSessionLostState
Added in API level 29
abstract fun onSessionLostState(
md: MediaDrm,
sessionId: ByteArray
): Unit
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.
Parameters | |
---|---|
md |
MediaDrm: the MediaDrm object on which the event occurred This value cannot be null . |
sessionId |
ByteArray: the DRM session ID on which the event occurred This value cannot be null . |