public final class

MediaLibraryService.LibraryParams.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.session.MediaLibraryService.LibraryParams.Builder

Overview

A builder for MediaLibraryService.LibraryParams.

Summary

Constructors
publicBuilder()

Methods
public MediaLibraryService.LibraryParamsbuild()

Builds MediaLibraryService.LibraryParams.

public MediaLibraryService.LibraryParams.BuildersetExtras(Bundle extras)

Set an extra .

public MediaLibraryService.LibraryParams.BuildersetOffline(boolean offline)

Sets whether the media items can be played without an internet connection.

public MediaLibraryService.LibraryParams.BuildersetRecent(boolean recent)

Sets whether the media items are recently played.

public MediaLibraryService.LibraryParams.BuildersetSuggested(boolean suggested)

Sets whether the media items are suggested.

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

Constructors

public Builder()

Methods

public MediaLibraryService.LibraryParams.Builder setRecent(boolean recent)

Sets whether the media items are recently played.

public MediaLibraryService.LibraryParams.Builder setOffline(boolean offline)

Sets whether the media items can be played without an internet connection.

public MediaLibraryService.LibraryParams.Builder setSuggested(boolean suggested)

Sets whether the media items are suggested.

public MediaLibraryService.LibraryParams.Builder setExtras(Bundle extras)

Set an extra .

Builds MediaLibraryService.LibraryParams.