Language

MediaType Enum

Definition

Enumerates values returned by several types.

public enum MediaType
type MediaType = 
Inheritance
MediaType

Fields

Name Value Description
None 0

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

Android reference for android.provider.MediaStore.Files.FileColumns.MEDIA_TYPE_NONE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Image 1

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

Android reference for android.provider.MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Audio 2

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

Android reference for android.provider.MediaStore.Files.FileColumns.MEDIA_TYPE_AUDIO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Video 3

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

Android reference for android.provider.MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Playlist 4

This constant was deprecated in API level 31. 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.

Android reference for android.provider.MediaStore.Files.FileColumns.MEDIA_TYPE_PLAYLIST.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Subtitle 5

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

Android reference for android.provider.MediaStore.Files.FileColumns.MEDIA_TYPE_SUBTITLE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Document 6

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

Android reference for android.provider.MediaStore.Files.FileColumns.MEDIA_TYPE_DOCUMENT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to