public final class

MediaItem.RequestMetadata.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.common.MediaItem.RequestMetadata.Builder

Overview

Builder for MediaItem.RequestMetadata instances.

Summary

Constructors
publicBuilder()

Constructs an instance.

Methods
public MediaItem.RequestMetadatabuild()

Builds the request metadata.

public MediaItem.RequestMetadata.BuildersetExtras(Bundle extras)

Sets optional extras .

public MediaItem.RequestMetadata.BuildersetMediaUri(Uri mediaUri)

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

public MediaItem.RequestMetadata.BuildersetSearchQuery(java.lang.String searchQuery)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Constructs an instance.

Methods

public MediaItem.RequestMetadata.Builder setMediaUri(Uri mediaUri)

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

public MediaItem.RequestMetadata.Builder setSearchQuery(java.lang.String searchQuery)

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

public MediaItem.RequestMetadata.Builder setExtras(Bundle extras)

Sets optional extras .

Builds the request metadata.