Android APIs
Added in API level 23
public static interface

MediaDrm.OnExpirationUpdateListener

android.media.MediaDrm.OnExpirationUpdateListener

Class Overview

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)

Added in API level 23

Called when a session expiration update occurs, to inform the app about the change in expiration time

Parameters
md the MediaDrm object on which the event occurred
sessionId the DRM session ID on which the event occurred
expirationTime 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.