Added in API level 1

Artists


class Artists : BaseColumns, MediaStore.Audio.ArtistColumns

Contains artists for audio files

Summary

Nested classes

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

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
String ARTIST

The artist who created the audio file, 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 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 NUMBER_OF_ALBUMS

The number of albums in the database for this 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 NUMBER_OF_TRACKS

The number of albums in the database for this 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!)

Get the content:// style URI for the artists 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

Added in API level 1
static val CONTENT_TYPE: String

The MIME type for this table.

Value: "vnd.android.cursor.dir/artists"

DEFAULT_SORT_ORDER

Added in API level 1
static val DEFAULT_SORT_ORDER: String

The default sort order for this table

Value: "artist_key"

ENTRY_CONTENT_TYPE

Added in API level 1
static val ENTRY_CONTENT_TYPE: String

The MIME type for entries in this table.

Value: "vnd.android.cursor.item/artist"

Public constructors

Artists

Added in API level 1
Artists()

Public methods

getContentUri

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

Get the content:// style URI for the artists 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 artists table on the given volume

Properties

EXTERNAL_CONTENT_URI

Added in API level 1
static val EXTERNAL_CONTENT_URI: Uri!

The content:// style URI for the "primary" external storage volume.

INTERNAL_CONTENT_URI

Added in API level 1
static val INTERNAL_CONTENT_URI: Uri!

The content:// style URI for the internal storage.