category
fun category( id: String, title: String, icon: FakeMusicCatalogIcon = FakeMusicCatalogIcon.FEATURED, contents: ItemBuilderConfig): IviMediaItem
Content copied to clipboard
Add a category to the catalog.
Categories are shown as tabs in the stock media UI, but are simple browsable items.
The contents lambda is used to populate it with other media items, and its metadata
parameter allows to populate the item's metadata.
Return
A copy of the added category, excluding any children.