public static interface MediaDrm.OnExpirationUpdateListener
android.media.MediaDrm.OnExpirationUpdateListener |
DRM会话过期更新发生时要调用的回调的接口定义
Public methods |
|
---|---|
abstract void |
onExpirationUpdate(MediaDrm md, byte[] sessionId, long expirationTime) 在会话过期更新发生时调用,以通知应用程序有关到期时间的更改 |
void onExpirationUpdate (MediaDrm md, byte[] sessionId, long expirationTime)
在会话过期更新发生时调用,以通知应用程序有关到期时间的更改
Parameters | |
---|---|
md |
MediaDrm : the MediaDrm object on which the event occurred |
sessionId |
byte : the DRM session ID on which the event occurred |
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. |