Added in API level 29

Downloads


class Downloads : MediaStore.DownloadColumns
kotlin.Any
   ↳ android.provider.MediaStore.Downloads

Collection of downloaded items.

Summary

Constants
static String

The MIME type for this table.

Inherited constants
Public methods
static Uri
getContentUri(volumeName: String)

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

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

Get the content:// style URI for a single row in the downloads 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 29
static val CONTENT_TYPE: String

The MIME type for this table.

Value: "vnd.android.cursor.dir/download"

Public methods

getContentUri

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

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

Parameters
volumeName String: the name of the volume to get the URI for This value cannot be null.
Return
Uri the URI to the image media table on the given volume This value cannot be null.

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 downloads 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 download to get the URI for
Return
Uri the URI to the downloads table on the given volume This value cannot be null.

Properties

EXTERNAL_CONTENT_URI

Added in API level 29
static val EXTERNAL_CONTENT_URI: Uri

The content:// style URI for the "primary" external storage volume.

INTERNAL_CONTENT_URI

Added in API level 29
static val INTERNAL_CONTENT_URI: Uri

The content:// style URI for the internal storage.