Added in API level 11

FileColumns


interface FileColumns : MediaStore.MediaColumns
android.provider.MediaStore.Files.FileColumns

File metadata columns.

Summary

Constants
static String

The media type (audio, video, image, document, playlist or subtitle) of the file, or 0 for not a media file
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.

static Int

Constant for the MEDIA_TYPE column indicating that file is an audio file.

static Int

Constant for the MEDIA_TYPE column indicating that file is a document file.

static Int

Constant for the MEDIA_TYPE column indicating that file is an image file.

static Int

Constant for the MEDIA_TYPE column indicating that file is not an audio, image, video, document, playlist, or subtitles file.

static Int

Constant for the MEDIA_TYPE column indicating that file is a playlist file.

static Int

Constant for the MEDIA_TYPE column indicating that file is a subtitles or lyrics file.

static Int

Constant for the MEDIA_TYPE column indicating that file is a video file.

static String

The MIME type of the media item.

static String

The index of the parent directory of the file
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.

Inherited constants

Constants

MEDIA_TYPE

Added in API level 11
static val MEDIA_TYPE: String

The media type (audio, video, image, document, playlist or subtitle) of the file, or 0 for not a media file
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: "media_type"

MEDIA_TYPE_AUDIO

Added in API level 11
static val MEDIA_TYPE_AUDIO: Int

Constant for the MEDIA_TYPE column indicating that file is an audio file.

Value: 2

MEDIA_TYPE_DOCUMENT

Added in API level 30
static val MEDIA_TYPE_DOCUMENT: Int

Constant for the MEDIA_TYPE column indicating that file is a document file.

Value: 6

MEDIA_TYPE_IMAGE

Added in API level 11
static val MEDIA_TYPE_IMAGE: Int

Constant for the MEDIA_TYPE column indicating that file is an image file.

Value: 1

MEDIA_TYPE_NONE

Added in API level 11
static val MEDIA_TYPE_NONE: Int

Constant for the MEDIA_TYPE column indicating that file is not an audio, image, video, document, playlist, or subtitles file.

Value: 0

MEDIA_TYPE_PLAYLIST

Added in API level 11
Deprecated in API level 31
static val MEDIA_TYPE_PLAYLIST: Int

Deprecated: Android playlists are now deprecated. We will keep the current functionality for compatibility reasons, but we will no longer take feature request. We do not advise adding new usages of Android Playlists. M3U files can be used as an alternative.

Constant for the MEDIA_TYPE column indicating that file is a playlist file.

Value: 4

MEDIA_TYPE_SUBTITLE

Added in API level 30
static val MEDIA_TYPE_SUBTITLE: Int

Constant for the MEDIA_TYPE column indicating that file is a subtitles or lyrics file.

Value: 5

MEDIA_TYPE_VIDEO

Added in API level 11
static val MEDIA_TYPE_VIDEO: Int

Constant for the MEDIA_TYPE column indicating that file is a video file.

Value: 3

MIME_TYPE

Added in API level 11
static val MIME_TYPE: String

The MIME type of the media item.

This is typically defined based on the file extension of the media item. However, it may be the value of the format attribute defined by the Dublin Core Media Initiative standard, extracted from any XMP metadata contained within this media item.

Note: the format attribute may be ignored if the top-level MIME type disagrees with the file extension. For example, it's reasonable for an image/jpeg file to declare a format of image/vnd.google.panorama360+jpg, but declaring a format of audio/ogg would be ignored.

This is a read-only column that is automatically computed.
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 .

Value: "mime_type"

PARENT

Added in API level 11
static val PARENT: String

The index of the parent directory of the file
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: "parent"