AudioColumns
interface AudioColumns : MediaStore.MediaColumns
android.provider.MediaStore.Audio.AudioColumns |
Audio metadata columns.
Summary
Constants | |
---|---|
static String |
The id of the album the audio file is from, if any |
static String |
A non human readable key calculated from the ALBUM, used for searching, sorting and grouping |
static String |
The id of the artist who created the audio file, if any |
static String |
A non human readable key calculated from the ARTIST, used for searching, sorting and grouping |
static String |
The number of bits used to represent each audio sample, if available. |
static String |
The position within the audio item at which playback should be resumed. |
static String |
The genre of the audio file, if any. |
static String |
The id of the genre the audio file is from, if any |
static String |
A non human readable key calculated from the GENRE, used for searching, sorting and grouping |
static String |
Non-zero if the audio file may be an alarm |
static String |
Non-zero if the audio file is an audiobook |
static String |
Non-zero if the audio file is music |
static String |
Non-zero if the audio file may be a notification sound |
static String |
Non-zero if the audio file is a podcast |
static String |
Non-zero if the audio file is a voice recording recorded by voice recorder apps |
static String |
Non-zero if the audio file may be a ringtone |
static String |
The sample rate in Hz, if available. |
static String |
A non human readable key calculated from the TITLE, used for searching, sorting and grouping |
static String |
The resource URI of a localized title, if any. |
static String |
The track number of this song on the album, if any. |
static String |
The year the audio file was recorded, if any |
Inherited constants | |
---|---|
Constants
ALBUM_ID
static val ALBUM_ID: String
The id of the album the audio file is from, 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_INTEGER
, and are read-only and cannot be mutated.
Value: "album_id"
ALBUM_KEY
static valALBUM_KEY: String
Deprecated: These keys are generated using java.util.Locale#ROOT
, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use ContentResolver.QUERY_ARG_SQL_SORT_ORDER
with COLLATE LOCALIZED
, or ContentResolver.QUERY_ARG_SORT_LOCALE
.
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.
Value: "album_key"
ARTIST_ID
static val ARTIST_ID: String
The id of 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_INTEGER
, and are read-only and cannot be mutated.
Value: "artist_id"
ARTIST_KEY
static valARTIST_KEY: String
Deprecated: These keys are generated using java.util.Locale#ROOT
, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use ContentResolver.QUERY_ARG_SQL_SORT_ORDER
with COLLATE LOCALIZED
, or ContentResolver.QUERY_ARG_SORT_LOCALE
.
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.
Value: "artist_key"
BITS_PER_SAMPLE
static val BITS_PER_SAMPLE: String
The number of bits used to represent each audio sample, if available.
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.
Value: "bits_per_sample"
BOOKMARK
static val BOOKMARK: String
The position within the audio item at which playback should be resumed.
Value is a non-negative duration in milliseconds.
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
.
Value: "bookmark"
GENRE
static val GENRE: String
The genre of 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.
Value: "genre"
GENRE_ID
static val GENRE_ID: String
The id of the genre the audio file is from, 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_INTEGER
, and are read-only and cannot be mutated.
Value: "genre_id"
GENRE_KEY
static valGENRE_KEY: String
Deprecated: These keys are generated using java.util.Locale#ROOT
, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use ContentResolver.QUERY_ARG_SQL_SORT_ORDER
with COLLATE LOCALIZED
, or ContentResolver.QUERY_ARG_SORT_LOCALE
.
A non human readable key calculated from the GENRE, 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.
Value: "genre_key"
IS_ALARM
static val IS_ALARM: String
Non-zero if the audio file may be an alarm
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.
Value: "is_alarm"
IS_AUDIOBOOK
static val IS_AUDIOBOOK: String
Non-zero if the audio file is an audiobook
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.
Value: "is_audiobook"
IS_MUSIC
static val IS_MUSIC: String
Non-zero if the audio file is music
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.
Value: "is_music"
IS_NOTIFICATION
static val IS_NOTIFICATION: String
Non-zero if the audio file may be a notification sound
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.
Value: "is_notification"
IS_PODCAST
static val IS_PODCAST: String
Non-zero if the audio file is a podcast
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.
Value: "is_podcast"
IS_RECORDING
static val IS_RECORDING: String
Non-zero if the audio file is a voice recording recorded by voice recorder apps
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.
Value: "is_recording"
IS_RINGTONE
static val IS_RINGTONE: String
Non-zero if the audio file may be a ringtone
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.
Value: "is_ringtone"
SAMPLERATE
static val SAMPLERATE: String
The sample rate in Hz, if available.
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.
Value: "samplerate"
TITLE_KEY
static valTITLE_KEY: String
Deprecated: These keys are generated using java.util.Locale#ROOT
, which means they don't reflect locale-specific sorting preferences. To apply locale-specific sorting preferences, use ContentResolver.QUERY_ARG_SQL_SORT_ORDER
with COLLATE LOCALIZED
, or ContentResolver.QUERY_ARG_SORT_LOCALE
.
A non human readable key calculated from the TITLE, 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.
Value: "title_key"
TITLE_RESOURCE_URI
static val TITLE_RESOURCE_URI: String
The resource URI of a localized title, if any.
Conforms to this pattern:
- Scheme:
ContentResolver.SCHEME_ANDROID_RESOURCE
- Authority: Package Name of ringtone title provider
- First Path Segment: Type of resource (must be "string")
- Second Path Segment: Resource ID of title
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.
Value: "title_resource_uri"
TRACK
static val TRACK: String
The track number of this song on the album, if any. This number encodes both the track number and the disc number. For multi-disc sets, this number will be 1xxx for tracks on the first disc, 2xxx for tracks on the second disc, etc.
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.
Value: "track"
YEAR
static val YEAR: String
The year the audio file was recorded, 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_INTEGER
, and are read-only and cannot be mutated.
Value: "year"