Genres
class Genres : BaseColumns, MediaStore.Audio.GenresColumns
kotlin.Any | |
↳ | android.provider.MediaStore.Audio.Genres |
Contains all genres for audio files
Summary
Nested classes | |
---|---|
Sub-directory of each genre containing all members. |
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 | |
---|---|
Public constructors | |
---|---|
Genres() |
Public methods | |
---|---|
static Uri! |
getContentUri(volumeName: String!) Get the content:// style URI for the audio genres table on the given volume. |
static Uri! |
getContentUriForAudioId(volumeName: String!, audioId: Int) Get the content:// style URI for querying the genres of an audio file. |
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/genre"
DEFAULT_SORT_ORDER
static val DEFAULT_SORT_ORDER: String
The default sort order for this table
Value: "name"
ENTRY_CONTENT_TYPE
static val ENTRY_CONTENT_TYPE: String
The MIME type for entries in this table.
Value: "vnd.android.cursor.item/genre"
Public constructors
Public methods
getContentUri
static fun getContentUri(volumeName: String!): Uri!
Get the content:// style URI for the audio genres 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 genres table on the given volume |
getContentUriForAudioId
static fun getContentUriForAudioId(
volumeName: String!,
audioId: Int
): Uri!
Get the content:// style URI for querying the genres of an audio file.
Parameters | |
---|---|
volumeName |
String!: the name of the volume to get the URI for |
audioId |
Int: the ID of the audio file for which to retrieve the genres |
Return | |
---|---|
Uri! |
the URI to for querying the genres for the audio file with the given the volume and audioID |
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.