Added in API level 1

Media

class Media : MediaStore.Video.VideoColumns
kotlin.Any
   ↳ android.provider.MediaStore.Video.Media

Summary

Constants
static String

The MIME type for this table.

static String

The default sort order for this table

Inherited constants
Public constructors

Public methods
static Uri!
getContentUri(volumeName: String!)

Get the content:// style URI for the video media table on the given volume.

static Uri
getContentUri(volumeName: String, id: Long)

Get the content:// style URI for a single row in the videos 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/video"

DEFAULT_SORT_ORDER

Added in API level 1
static val DEFAULT_SORT_ORDER: String

The default sort order for this table

Value: "title"

Public constructors

Media

Added in API level 1
Media()

Public methods

getContentUri

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

Get the content:// style URI for the video media table on the given volume.

Parameters
volumeName String!: the name of the volume to get the URI for
Return
Uri! the URI to the video media table on the given volume

getContentUri

Added in API level 30
static fun getContentUri(
    volumeName: String,
    id: Long
): Uri

Get the content:// style URI for a single row in the videos table on the given volume.

Parameters
volumeName String: the name of the volume to get the URI for This value cannot be null.
id Long: the video to get the URI for
Return
Uri the URI to the videos table on the given volume This value cannot be null.

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.