MediaItem.RequestMetadata.Builder


class MediaItem.RequestMetadata.Builder


Builder for RequestMetadata instances.

Summary

Public constructors

Constructs an instance.

Public functions

MediaItem.RequestMetadata!

Builds the request metadata.

MediaItem.RequestMetadata.Builder!

Sets optional extras Bundle.

MediaItem.RequestMetadata.Builder!

Sets the URI of the requested media, or null if not known or applicable.

MediaItem.RequestMetadata.Builder!

Sets the search query for the requested media, or null if not applicable.

Public constructors

Builder

Builder()

Constructs an instance.

Public functions

build

fun build(): MediaItem.RequestMetadata!

Builds the request metadata.

setExtras

@CanIgnoreReturnValue
fun setExtras(extras: Bundle?): MediaItem.RequestMetadata.Builder!

Sets optional extras Bundle.

setMediaUri

@CanIgnoreReturnValue
fun setMediaUri(mediaUri: Uri?): MediaItem.RequestMetadata.Builder!

Sets the URI of the requested media, or null if not known or applicable.

setSearchQuery

@CanIgnoreReturnValue
fun setSearchQuery(searchQuery: String?): MediaItem.RequestMetadata.Builder!

Sets the search query for the requested media, or null if not applicable.