Most visited

Recently visited

Added in API level 18

RemoteControlClient.OnGetPlaybackPositionListener

public static interface RemoteControlClient.OnGetPlaybackPositionListener

android.media.RemoteControlClient.OnGetPlaybackPositionListener


在查询媒体播放位置时调用回调的接口定义。

也可以看看:

Summary

Public methods

abstract long onGetPlaybackPosition()

调用接口的实现者来查询当前播放位置。

Public methods

onGetPlaybackPosition

Added in API level 18
long onGetPlaybackPosition ()

调用接口的实现者来查询当前播放位置。

Returns
long a negative value if the current playback position (or the last valid playback position) is not known, or a zero or positive value expressed in ms indicating the current position, or the last valid known position.

Hooray!