Skip to content

Most visited

Recently visited

navigation
added in API level 23

MediaDrm.OnExpirationUpdateListener

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

onExpirationUpdate

added in API level 23
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 must never be null.

sessionId byte: the DRM session ID on which the event occurred

This value must never 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.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.