MediaItem.RequestMetadata.Builder


public final class MediaItem.RequestMetadata.Builder


Builder for RequestMetadata instances.

Summary

Public constructors

Constructs an instance.

Public methods

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

public Builder()

Constructs an instance.

Public methods

build

public MediaItem.RequestMetadata build()

Builds the request metadata.

setExtras

@CanIgnoreReturnValue
public MediaItem.RequestMetadata.Builder setExtras(@Nullable Bundle extras)

Sets optional extras Bundle.

setMediaUri

@CanIgnoreReturnValue
public MediaItem.RequestMetadata.Builder setMediaUri(@Nullable Uri mediaUri)

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

setSearchQuery

@CanIgnoreReturnValue
public MediaItem.RequestMetadata.Builder setSearchQuery(@Nullable String searchQuery)

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