MediaLibraryService.LibraryParams.Builder


public final class MediaLibraryService.LibraryParams.Builder


A builder for LibraryParams.

Summary

Public constructors

Public methods

MediaLibraryService.LibraryParams

Builds LibraryParams.

MediaLibraryService.LibraryParams.Builder

Set an extra Bundle.

MediaLibraryService.LibraryParams.Builder

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

MediaLibraryService.LibraryParams.Builder

Sets whether the media items are recently played.

MediaLibraryService.LibraryParams.Builder

Sets whether the media items are suggested.

Public constructors

Builder

public Builder()

Public methods

setOffline

@CanIgnoreReturnValue
public MediaLibraryService.LibraryParams.Builder setOffline(boolean offline)

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

setRecent

@CanIgnoreReturnValue
public MediaLibraryService.LibraryParams.Builder setRecent(boolean recent)

Sets whether the media items are recently played.

setSuggested

@CanIgnoreReturnValue
public MediaLibraryService.LibraryParams.Builder setSuggested(boolean suggested)

Sets whether the media items are suggested.