Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
MediaDrm.OnExpirationUpdateListener
android.media.MediaDrm.OnExpirationUpdateListener
|
Interface definition for a callback to be invoked when a drm session
expiration update occurs
Summary
Public methods |
abstract
void
|
onExpirationUpdate(MediaDrm md, byte[] sessionId, long expirationTime)
Called when a session expiration update occurs, to inform the app
about the change in expiration time
|
Public methods
public abstract void onExpirationUpdate (MediaDrm md,
byte[] sessionId,
long expirationTime)
Called when a session expiration update occurs, to inform the app
about the change in expiration time
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 . |
expirationTime |
long : the new expiration time for the keys in the session.
The time is in milliseconds, relative to the Unix epoch. A time of
0 indicates that the keys never expire. |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaDrm.OnExpirationUpdateListener\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nMediaDrm.OnExpirationUpdateListener\n===================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/MediaDrm.OnExpirationUpdateListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nMediaDrm.OnExpirationUpdateListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------|\n| android.media.MediaDrm.OnExpirationUpdateListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface definition for a callback to be invoked when a drm session\nexpiration update occurs\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onExpirationUpdate](/reference/android/media/MediaDrm.OnExpirationUpdateListener#onExpirationUpdate(android.media.MediaDrm,%20byte[],%20long))`(`[MediaDrm](/reference/android/media/MediaDrm)` md, byte[] sessionId, long expirationTime) ` Called when a session expiration update occurs, to inform the app about the change in expiration time |\n\nPublic methods\n--------------\n\n### onExpirationUpdate\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onExpirationUpdate (MediaDrm md, \n byte[] sessionId, \n long expirationTime)\n```\n\nCalled when a session expiration update occurs, to inform the app\nabout the change in expiration time\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 |\n| `expirationTime` | `long`: the new expiration time for the keys in the session. The time is in milliseconds, relative to the Unix epoch. A time of 0 indicates that the keys never expire. \u003cbr /\u003e |"]]