getSearchResult

suspend fun getSearchResult(query: String, @IntRange(from = 0) page: Int, @IntRange(from = 1) pageSize: Int, params: MediaLibraryService.LibraryParams? = null): LibraryResult<ImmutableList<MediaItem>>

Returns the search result from the library service.

Parameters

query

A non-empty search query that you've specified with search.

page

A page number to get the paginated result starting from 0

pageSize

A page size to get the paginated result.

params

Optional parameters.