public interface PlaylistManager
限定符和类型 | 接口和说明 |
---|---|
static interface |
PlaylistManager.Callback
getPlaylist(Callback) 方法的回调接口。 |
限定符和类型 | 方法和说明 |
---|---|
long |
getLastModified()
获取最后一次修改播放列表的时间。
|
void |
getPlaylist(PlaylistManager.Callback callback)
以异步的方式获取播放队列。
|
java.lang.String |
getPlaylistName()
获取播放列表的名称。
|
int |
getPlaylistSize()
获取当前播放队列的大小。
|
java.lang.String |
getPlaylistToken()
获取播放列表的 Token
|
boolean |
isPlaylistEditable()
播放列表是否是可编辑的。
|
@NonNull java.lang.String getPlaylistName()
int getPlaylistSize()
这是个轻量级操作,可在 UI 线程上直接运行。
@NonNull java.lang.String getPlaylistToken()
boolean isPlaylistEditable()
void getPlaylist(@NonNull PlaylistManager.Callback callback)
long getLastModified()
这个时间是 System.currentTimeMillis()