Albums
class Albums : BaseColumns, MediaStore.Audio.AlbumColumns
Contains artists for audio files
Summary
Constants |
static String |
The MIME type for this table.
|
static String |
The default sort order for this table
|
static String |
The MIME type for entries in this table.
|
Inherited constants |
From class AlbumColumns
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.
|
|
|
Public methods |
static Uri! |
Get the content:// style URI for the albums table on the given volume.
|
Properties |
static Uri! |
The content:// style URI for the "primary" external storage volume.
|
static Uri! |
The content:// style URI for the internal storage.
|
Constants
CONTENT_TYPE
static val CONTENT_TYPE: String
The MIME type for this table.
Value: "vnd.android.cursor.dir/albums"
DEFAULT_SORT_ORDER
static val DEFAULT_SORT_ORDER: String
The default sort order for this table
Value: "album_key"
ENTRY_CONTENT_TYPE
static val ENTRY_CONTENT_TYPE: String
The MIME type for entries in this table.
Value: "vnd.android.cursor.item/album"
Public constructors
Public methods
getContentUri
static fun getContentUri(volumeName: String!): Uri!
Get the content:// style URI for the albums table on the given volume.
Parameters |
volumeName |
String!: the name of the volume to get the URI for |
Return |
Uri! |
the URI to the audio albums table on the given volume |
Properties
EXTERNAL_CONTENT_URI
static val EXTERNAL_CONTENT_URI: Uri!
The content:// style URI for the "primary" external storage volume.
INTERNAL_CONTENT_URI
static val INTERNAL_CONTENT_URI: Uri!
The content:// style URI for the internal storage.