MediaLibraryService.LibraryParams.Builder


class MediaLibraryService.LibraryParams.Builder


A builder for LibraryParams.

Summary

Public constructors

Public functions

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

Builder()

Public functions

setOffline

@CanIgnoreReturnValue
fun setOffline(offline: Boolean): MediaLibraryService.LibraryParams.Builder!

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

setRecent

@CanIgnoreReturnValue
fun setRecent(recent: Boolean): MediaLibraryService.LibraryParams.Builder!

Sets whether the media items are recently played.

setSuggested

@CanIgnoreReturnValue
fun setSuggested(suggested: Boolean): MediaLibraryService.LibraryParams.Builder!

Sets whether the media items are suggested.