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


Sub-directory of each playlist containing all members.

Summary

Constants

String AUDIO_ID

The ID of the audio file
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object.

String CONTENT_DIRECTORY

A subdirectory of each playlist containing all member audio files.

String DEFAULT_SORT_ORDER

The default sort order for this table

String PLAYLIST_ID

The ID of the playlist
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object.

String PLAY_ORDER

The order of the songs in the playlist
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object.

String _ID

The ID within the playlist.

Inherited constants

Public constructors

Members()

Public methods

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

Convenience method to move a playlist item to a new location

Inherited methods

Constants

AUDIO_ID

Added in API level 1
public static final String AUDIO_ID

The ID of the audio file
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER .

Constant Value: "audio_id"

CONTENT_DIRECTORY

Added in API level 1
public static final String CONTENT_DIRECTORY

A subdirectory of each playlist containing all member audio files.

Constant Value: "members"

DEFAULT_SORT_ORDER

Added in API level 1
public static final String DEFAULT_SORT_ORDER

The default sort order for this table

Constant Value: "play_order"

PLAYLIST_ID

Added in API level 1
public static final String PLAYLIST_ID

The ID of the playlist
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER .

Constant Value: "playlist_id"

PLAY_ORDER

Added in API level 1
public static final String PLAY_ORDER

The order of the songs in the playlist
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER .

Constant Value: "play_order"

_ID

Added in API level 1
public static final String _ID

The ID within the playlist.
This constant represents a column name that can be used with a ContentProvider through a ContentValues or Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER .

Constant Value: "_id"

Public constructors

Members

Added in API level 1
public Members ()

Public methods

getContentUri

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

Parameters
volumeName String

playlistId long

Returns
Uri

moveItem

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

Convenience method to move a playlist item to a new location

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