Added in API level 23

OnExpirationUpdateListener


interface OnExpirationUpdateListener
android.media.MediaDrm.OnExpirationUpdateListener

Interface definition for a callback to be invoked when a drm session expiration update occurs

Summary

Public methods
abstract Unit
onExpirationUpdate(md: MediaDrm, sessionId: ByteArray, expirationTime: Long)

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
abstract fun onExpirationUpdate(
    md: MediaDrm,
    sessionId: ByteArray,
    expirationTime: Long
): Unit

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 ByteArray: 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.