BrowserModel
final class BrowserModel: Sendable
The model for BrowserView
-
The selection of optional genre, artist or album in the
BrowserViewDeclaration
Swift
var selection = Selection() -
Details for the ‘highest selected item’
Declaration
Swift
var details: (any KodiItem)? -
All the items that are available
Declaration
Swift
var library = Media() -
The filtered items
Declaration
Swift
var items = Media() -
The current
RouterselectionDeclaration
Swift
var router: Router = .musicBrowser -
The optional search query
Declaration
Swift
var query: String = "" -
The media to show in the
See moreBrowserViewDeclaration
Swift
struct Media: Equatable, Sendable -
The optional selection in the
See moreBrowserViewDeclaration
Swift
struct Selection: Equatable, Hashable, Sendable -
Filter the library by
RouterselectionThe browser library is based on songs; they are filtered first and then the rest is added
Declaration
Swift
func filterLibrary(kodi: KodiConnector, settings: KodioSettings) async -
Filter the
BrowserViewbased on the optionalSelectionDeclaration
Swift
func filterBrowser() async
View on GitHub