MediaItem.RequestMetadata
class MediaItem.RequestMetadata
Metadata that helps the player to understand a playback request represented by a MediaItem.
This metadata is most useful for cases where playback requests are forwarded to other player instances (e.g. from a androidx.media3.session.MediaController) and the player creating the request doesn't know the required LocalConfiguration for playback.
Summary
Nested types |
|---|
|
Builder for |
Constants |
|
|---|---|
const MediaItem.RequestMetadata! |
Empty request metadata. |
Public functions |
|
|---|---|
MediaItem.RequestMetadata.Builder! |
Returns a |
Boolean |
|
java-static MediaItem.RequestMetadata! |
@UnstableApiRestores a |
Int |
hashCode() |
Bundle! |
Public properties |
|
|---|---|
Bundle? |
Optional extras |
Uri? |
The URI of the requested media, or null if not known or applicable. |
String? |
The search query for the requested media, or null if not applicable. |
Constants
Public functions
buildUpon
fun buildUpon(): MediaItem.RequestMetadata.Builder!
Returns a Builder initialized with the values of this instance.
fromBundle
@UnstableApi
java-static fun fromBundle(bundle: Bundle!): MediaItem.RequestMetadata!
Restores a RequestMetadata from a Bundle.
Public properties
extras
val extras: Bundle?
Optional extras Bundle.
Given the complexities of checking the equality of two Bundle instances, the contents of these extras are not considered in the equals or hashCode implementation.
searchQuery
val searchQuery: String?
The search query for the requested media, or null if not applicable.