MediaConstants

Added in 1.1.0
Deprecated in 1.3.0

class MediaConstants


Media constants for sharing constants between media provider and consumer apps

Summary

Constants

const String!
MEDIA_URI_AUTHORITY = "media2-session"

A android.net.Uri authority used in a media Uri.

const String!

A android.net.Uri path used by .MediaControllerCompat.TransportControls#playFromMediaId See setMediaUri and onSetMediaUri for more details.

const String!

A android.net.Uri path used by .MediaControllerCompat.TransportControls#playFromSearch See setMediaUri and onSetMediaUri for more details.

const String!

A android.net.Uri path used by .MediaControllerCompat.TransportControls#prepareFromMediaId See setMediaUri and onSetMediaUri for more details.

const String!

A android.net.Uri path used by .MediaControllerCompat.TransportControls#prepareFromSearch See setMediaUri and onSetMediaUri for more details.

const String!

A android.net.Uri path for encoding how the Uri will be translated when connected to android.support.v4.media.session.MediaSessionCompat.

const String!

A android.net.Uri query for media ID.

const String!

A android.net.Uri query for search query.

const String!

A android.net.Uri query for media Uri.

const String!
MEDIA_URI_SCHEME = "androidx"

A android.net.Uri scheme used in a media Uri.

Constants

MEDIA_URI_AUTHORITY

Added in 1.1.0
Deprecated in 1.3.0
const val MEDIA_URI_AUTHORITY = "media2-session": String!

A android.net.Uri authority used in a media Uri. See setMediaUri and onSetMediaUri for more details.

MEDIA_URI_PATH_PLAY_FROM_MEDIA_ID

Added in 1.1.0
Deprecated in 1.3.0
const val MEDIA_URI_PATH_PLAY_FROM_MEDIA_ID = "playFromMediaId": String!

A android.net.Uri path used by .MediaControllerCompat.TransportControls#playFromMediaId See setMediaUri and onSetMediaUri for more details.

MEDIA_URI_PATH_PLAY_FROM_SEARCH

Added in 1.1.0
Deprecated in 1.3.0
const val MEDIA_URI_PATH_PLAY_FROM_SEARCH = "playFromSearch": String!

A android.net.Uri path used by .MediaControllerCompat.TransportControls#playFromSearch See setMediaUri and onSetMediaUri for more details.

MEDIA_URI_PATH_PREPARE_FROM_MEDIA_ID

Added in 1.1.0
Deprecated in 1.3.0
const val MEDIA_URI_PATH_PREPARE_FROM_MEDIA_ID = "prepareFromMediaId": String!

A android.net.Uri path used by .MediaControllerCompat.TransportControls#prepareFromMediaId See setMediaUri and onSetMediaUri for more details.

MEDIA_URI_PATH_PREPARE_FROM_SEARCH

Added in 1.1.0
Deprecated in 1.3.0
const val MEDIA_URI_PATH_PREPARE_FROM_SEARCH = "prepareFromSearch": String!

A android.net.Uri path used by .MediaControllerCompat.TransportControls#prepareFromSearch See setMediaUri and onSetMediaUri for more details.

MEDIA_URI_PATH_SET_MEDIA_URI

Added in 1.2.0
Deprecated in 1.3.0
const val MEDIA_URI_PATH_SET_MEDIA_URI = "setMediaUri": String!

A android.net.Uri path for encoding how the Uri will be translated when connected to android.support.v4.media.session.MediaSessionCompat. See setMediaUri for more details.

MEDIA_URI_QUERY_ID

Added in 1.1.0
Deprecated in 1.3.0
const val MEDIA_URI_QUERY_ID = "id": String!

A android.net.Uri query for media ID.

MEDIA_URI_QUERY_QUERY

Added in 1.1.0
Deprecated in 1.3.0
const val MEDIA_URI_QUERY_QUERY = "query": String!

A android.net.Uri query for search query.

MEDIA_URI_QUERY_URI

Added in 1.2.0
Deprecated in 1.3.0
const val MEDIA_URI_QUERY_URI = "uri": String!

A android.net.Uri query for media Uri.

See also
setMediaUri

MEDIA_URI_SCHEME

Added in 1.1.0
Deprecated in 1.3.0
const val MEDIA_URI_SCHEME = "androidx": String!

A android.net.Uri scheme used in a media Uri. See setMediaUri and onSetMediaUri for more details.