Most visited

Recently visited

Added in API level 1

MediaStore.Audio.Playlists.Members

public static final class MediaStore.Audio.Playlists.Members
extends Object implements MediaStore.Audio.AudioColumns

java.lang.Object
   ↳ android.provider.MediaStore.Audio.Playlists.Members


包含所有成员的每个播放列表的子目录。

Summary

Constants

String AUDIO_ID

音频文件的ID

类型:INTEGER(长)

String CONTENT_DIRECTORY

包含所有成员音频文件的每个播放列表的子目录。

String DEFAULT_SORT_ORDER

此表的默认排序顺序

String PLAYLIST_ID

播放列表的ID

类型:INTEGER(长)

String PLAY_ORDER

播放列表中歌曲的顺序

类型:INTEGER(long)>

String _ID

播放列表中的ID。

Inherited constants

From interface android.provider.MediaStore.Audio.AudioColumns
From interface android.provider.MediaStore.MediaColumns
From interface android.provider.BaseColumns

Public constructors

MediaStore.Audio.Playlists.Members()

Public methods

static final Uri getContentUri(String volumeName, long playlistId)
static final boolean moveItem(ContentResolver res, long playlistId, int from, int to)

将播放列表项目移动到新位置的便捷方法

Inherited methods

From class java.lang.Object

Constants

AUDIO_ID

Added in API level 1
String AUDIO_ID

音频文件的ID

类型:INTEGER(长)

常量值:“audio_id”

CONTENT_DIRECTORY

Added in API level 1
String CONTENT_DIRECTORY

包含所有成员音频文件的每个播放列表的子目录。

常数值:“成员”

DEFAULT_SORT_ORDER

Added in API level 1
String DEFAULT_SORT_ORDER

此表的默认排序顺序

常数值:“play_order”

PLAYLIST_ID

Added in API level 1
String PLAYLIST_ID

播放列表的ID

类型:INTEGER(长)

常量值:“playlist_id”

PLAY_ORDER

Added in API level 1
String PLAY_ORDER

播放列表中歌曲的顺序

类型:INTEGER(long)>

常数值:“play_order”

_ID

Added in API level 1
String _ID

播放列表中的ID。

常量值:“_id”

Public constructors

MediaStore.Audio.Playlists.Members

Added in API level 1
MediaStore.Audio.Playlists.Members ()

Public methods

getContentUri

Added in API level 1
Uri getContentUri (String volumeName, 
                long playlistId)

Parameters
volumeName String
playlistId long
Returns
Uri

moveItem

Added in API level 8
boolean moveItem (ContentResolver res, 
                long playlistId, 
                int from, 
                int to)

将播放列表项目移动到新位置的便捷方法

Parameters
res ContentResolver: The content resolver to use
playlistId long: The numeric id of the playlist
from int: The position of the item to move
to int: The position to move the item to
Returns
boolean true on success

Hooray!