共用方式為


MediaDrm.IOnExpirationUpdateListener.OnExpirationUpdate Method

Definition

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

[Android.Runtime.Register("onExpirationUpdate", "(Landroid/media/MediaDrm;[BJ)V", "GetOnExpirationUpdate_Landroid_media_MediaDrm_arrayBJHandler:Android.Media.MediaDrm/IOnExpirationUpdateListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)]
public void OnExpirationUpdate (Android.Media.MediaDrm md, byte[] sessionId, long expirationTime);
[<Android.Runtime.Register("onExpirationUpdate", "(Landroid/media/MediaDrm;[BJ)V", "GetOnExpirationUpdate_Landroid_media_MediaDrm_arrayBJHandler:Android.Media.MediaDrm/IOnExpirationUpdateListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=23)>]
abstract member OnExpirationUpdate : Android.Media.MediaDrm * byte[] * int64 -> unit

Parameters

md
MediaDrm

the MediaDrm object on which the event occurred

sessionId
Byte[]

the DRM session ID on which the event occurred

expirationTime
Int64

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.

Attributes

Remarks

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

Java documentation for android.media.MediaDrm.OnExpirationUpdateListener.onExpirationUpdate(android.media.MediaDrm, byte[], long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to