Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
MediaDrm.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
void
|
onSessionLostState(MediaDrm md, byte[] sessionId)
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
public abstract void onSessionLostState (MediaDrm md,
byte[] sessionId)
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 |
byte : the DRM session ID on which the event occurred
This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# MediaDrm.OnSessionLostStateListener\n\nAdded in [API level 29](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nMediaDrm.OnSessionLostStateListener\n===================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/MediaDrm.OnSessionLostStateListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nMediaDrm.OnSessionLostStateListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------|\n| android.media.MediaDrm.OnSessionLostStateListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface definition for a callback to be invoked when the\nsession state has been lost and is now invalid\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onSessionLostState](/reference/android/media/MediaDrm.OnSessionLostStateListener#onSessionLostState(android.media.MediaDrm,%20byte[]))`(`[MediaDrm](/reference/android/media/MediaDrm)` md, byte[] sessionId) ` 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. |\n\nPublic methods\n--------------\n\n### onSessionLostState\n\nAdded in [API level 29](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onSessionLostState (MediaDrm md, \n byte[] sessionId)\n```\n\nCalled when session state has lost state, to inform the app\nabout the condition so it can close the session and open a new\none to resume operation.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|-------------------------------------------------------------------------------------------------|\n| `md` | `MediaDrm`: the MediaDrm object on which the event occurred This value cannot be `null`. \u003cbr /\u003e |\n| `sessionId` | `byte`: the DRM session ID on which the event occurred This value cannot be `null`. \u003cbr /\u003e |"]]