Added in API level 1

Albums


class Albums : BaseColumns, MediaStore.Audio.AlbumColumns

Sub-directory of each artist containing all albums on which a song by the artist appears.

Summary

Inherited constants
String ALBUM

The album on which the audio file appears, if any
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

String ALBUM_ART

Cached album art.
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING .

String ALBUM_ID

The id for the album
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

String ALBUM_KEY

A non human readable key calculated from the ALBUM, used for searching, sorting and grouping
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

String ARTIST

The name of the artist whose songs appear on this album.
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

String ARTIST_ID

The ID of the artist whose songs appear on this album.
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

String ARTIST_KEY

A non human readable key calculated from the ARTIST, used for searching, sorting and grouping
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_STRING , and are read-only and cannot be mutated.

String FIRST_YEAR

The year in which the earliest songs on this album were released. This will often be the same as LAST_YEAR, but for compilation albums they might differ.
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

String LAST_YEAR

The year in which the latest songs on this album were released. This will often be the same as FIRST_YEAR, but for compilation albums they might differ.
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

String NUMBER_OF_SONGS

The number of songs on this album
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

String NUMBER_OF_SONGS_FOR_ARTIST

This column is available when getting album info via artist, and indicates the number of songs on the album by the given artist.
This constant represents a column name that can be used with a android.content.ContentProvider through a android.content.ContentValues or android.database.Cursor object. The values stored in this column are Cursor#FIELD_TYPE_INTEGER , and are read-only and cannot be mutated.

String _COUNT

The count of rows in a directory.

Type: INTEGER

String _ID

The unique ID for a row.

Type: INTEGER (long)

Public constructors

Public methods
static Uri!
getContentUri(volumeName: String!, artistId: Long)

Public constructors

Albums

Added in API level 1
Albums()

Public methods

getContentUri

Added in API level 1
static fun getContentUri(
    volumeName: String!,
    artistId: Long
): Uri!