Versions in this module Expand all Collapse all v0 v0.1.6 Nov 27, 2026 Changes in this version type RuntimeAdapter + func (r *RuntimeAdapter) AudioPreferences() appplatform.AudioPreferences + func (r *RuntimeAdapter) SetReplayGain(enabled bool) v0.1.5 Nov 21, 2026 v0.1.4 Nov 21, 2026 Changes in this version type Page + const PageDiscover v0.1.3 Nov 21, 2026 v0.1.2 Nov 21, 2026 v0.1.1 Nov 21, 2026 v0.1.0 Nov 20, 2026 Changes in this version + const CardsPage + const ID + const PageAhead + const PageSize + func DeleteCredentials() + func LoadCredentials(cfg *backend.Config) + func PlayList(p PlayerPort, l *List, index int) + func Registration() pluginapi.Registration + func SaveCredentials(cfg backend.Config) error + func ShuffleList(ctx context.Context, p PlayerPort, l *List, post func(func())) + func Start(start pluginapi.Startup) pluginapi.Adapter + type AccountAction struct + Action func() + Danger bool + Icon *ui.SVG + Label string + Separator bool + Shortcut string + type Adapter struct + func NewAdapter(host Host, settings *platformPreferences, save ...func()) *Adapter + func (a *Adapter) Configured() bool + func (a *Adapter) FetchArtwork(ctx context.Context, ref string, size int) ([]byte, bool, error) + func (a *Adapter) Home() *Home + func (a *Adapter) OwnsTrack(tr *pluginapi.Track) bool + func (a *Adapter) PlaybackMedia() pluginapi.PlaybackMedia + type CardView struct + Art func(*ui.Painter, ui.Rect, *pluginapi.Playlist, float32) + Count int + Header func(*ui.Context) + HeaderSkeleton func(*ui.Context) + Meta bool + OnOpen func(int64) + OnPlay func(int64) + Placeholder *ui.SVG + Round bool + Sub string + Title string + type Catalog struct + AlbumDetailSort string + AlbumSort string + Albums *paging.Pager[pluginapi.Playlist] + ArtistAlbumSort string + ArtistAlbums map[int64]*paging.Pager[pluginapi.Playlist] + ArtistSort string + ArtistTrackSort string + Artists *paging.Pager[pluginapi.Playlist] + FavoriteSort string + GenreSort string + GenreTrackSort string + Genres *paging.Pager[pluginapi.Playlist] + LibrarySort string + Lists map[int64]*List + Meta map[int64]pluginapi.Playlist + OnTracks func([]pluginapi.Track) + Post func(func()) + SearchAlbums *paging.Pager[pluginapi.Playlist] + SearchArtists *paging.Pager[pluginapi.Playlist] + SearchList *List + Session *State + func NewCatalog(session *State, post func(func())) *Catalog + func (c *Catalog) AlbumsList() *paging.Pager[pluginapi.Playlist] + func (c *Catalog) ArtistAlbumsList(id int64, ref string) *paging.Pager[pluginapi.Playlist] + func (c *Catalog) ArtistsList() *paging.Pager[pluginapi.Playlist] + func (c *Catalog) FavoriteChanged(id int64, liked bool) + func (c *Catalog) GenresList() *paging.Pager[pluginapi.Playlist] + func (c *Catalog) ListFor(id int64) *List + func (c *Catalog) ListForRoute(id int64, kind, ref string) *List + func (c *Catalog) NewList(spec Spec) *List + func (c *Catalog) Refresh(id int64) + func (c *Catalog) RemoveFavorite(id int64) bool + func (c *Catalog) Search(query string) error + type Home struct + func NewHome(state *State, host Host, runtimes ...*RuntimeAdapter) *Home + func (h *Home) Back() + func (h *Home) CanBack() bool + func (h *Home) CanForward() bool + func (h *Home) CloseTransient() + func (h *Home) Content(c *ui.Context) + func (h *Home) Forward() + func (h *Home) Open(route Route) + func (h *Home) ReportStarted(tr *pluginapi.Track) + func (h *Home) RequestAddList(pl pluginapi.Playlist, l *List) + func (h *Home) RequestAddTracks(pl pluginapi.Playlist, tracks []pluginapi.Track) + func (h *Home) RequestChangeCover(pl pluginapi.Playlist) + func (h *Home) RequestDelete(pl pluginapi.Playlist) + func (h *Home) RequestFavorite(tr pluginapi.Track, liked bool) + func (h *Home) RequestNewPlaylist(tracks []pluginapi.Track) + func (h *Home) RequestNewPlaylistFrom(l *List) + func (h *Home) RequestRemoveTrack(pl pluginapi.Playlist, tr pluginapi.Track) + func (h *Home) RequestRename(pl pluginapi.Playlist) + func (h *Home) ResetNavigation(route Route) + func (h *Home) Route() Route + func (h *Home) SearchText() *string + func (h *Home) Settings(c *ui.Context) + func (h *Home) State() *State + type Host = appplatform.Services + type List struct + CoverURL string + HeaderKind string + ID int64 + Kind string + Name string + Pages *paging.Pager[pluginapi.Track] + Spec Spec + Sub string + func (l *List) Cover() string + func (l *List) Refresh() + func (l *List) SetSort(sort string) + type ListKind string + const ListAlbum + const ListArtist + const ListFavorites + const ListGenre + const ListLibrary + const ListPlaylist + const ListRecent + const ListSearch + type Page = string + const PageAlbums + const PageArtistAlbums + const PageArtists + const PageFolders + const PageGenres + const PageLibrary + const PagePlaylist + const PageRoam + const PageSearch + const PageSearchAlbums + const PageSearchArtists + type PlayerPort = appplatform.PlayerPort + type Route struct + ID int64 + Kind string + Page Page + Query string + func ArtistSongsRoute(id int64, ref string) Route + func FavoritesRoute() Route + type RuntimeAdapter struct + func NewRuntime(state *State, settings *platformPreferences, save ...func()) *RuntimeAdapter + func (r *RuntimeAdapter) Cancel(context.Context) error + func (r *RuntimeAdapter) Config() connectionConfig + func (r *RuntimeAdapter) Configured() bool + func (r *RuntimeAdapter) Connect(ctx context.Context, cfg connectionConfig) error + func (r *RuntimeAdapter) Connected() bool + func (r *RuntimeAdapter) Disconnect(ctx context.Context) error + func (r *RuntimeAdapter) Error() error + func (r *RuntimeAdapter) FetchArtwork(ctx context.Context, raw string, size int) ([]byte, bool, error) + func (r *RuntimeAdapter) SetConfig(cfg connectionConfig) + func (r *RuntimeAdapter) SetSort(key, value string) + func (r *RuntimeAdapter) SetTranscode(v transcodeSettings) + func (r *RuntimeAdapter) Sorts() map[string]string + func (r *RuntimeAdapter) Transcode() transcodeSettings + func (r *RuntimeAdapter) TranscodeBitrates() []int + type SearchResults struct + Albums *paging.Pager[pluginapi.Playlist] + Artists *paging.Pager[pluginapi.Playlist] + Query string + Songs *paging.Pager[pluginapi.Track] + type SearchView struct + Favorite func(pluginapi.Track, bool) + Liked func(int64) bool + OpenCards func(string) + OpenList func(int64) + Play func(int) + PlayCard func(int64) + TrackMenu func(*ui.Menu, *pluginapi.Track, int64) + type Spec struct + Kind ListKind + Query string + Ref string + Sort string + type State struct + func NewState() *State + func (s *State) AddToPlaylist(ctx context.Context, pl pluginapi.Playlist, tracks []pluginapi.Track) error + func (s *State) Attach(client *backend.Client) error + func (s *State) Cancel() + func (s *State) Catalog() *Catalog + func (s *State) ChangePlaylistCover(ctx context.Context, pl pluginapi.Playlist, picture []byte) (string, error) + func (s *State) CheckContext(ctx context.Context) error + func (s *State) Client() *backend.Client + func (s *State) Config() backend.Config + func (s *State) Connected() bool + func (s *State) Connecting() bool + func (s *State) CreatePlaylist(ctx context.Context, name string) (pluginapi.Playlist, error) + func (s *State) DeletePlaylist(ctx context.Context, pl pluginapi.Playlist) error + func (s *State) Detach() *backend.Client + func (s *State) Error() error + func (s *State) FetchArtwork(ctx context.Context, raw string, size int) (data []byte, handled bool, err error) + func (s *State) FolderViewEnabled() bool + func (s *State) Generation() uint64 + func (s *State) LikeBusy(id int64) bool + func (s *State) Liked(id int64) bool + func (s *State) LikedTrack(tr *pluginapi.Track) bool + func (s *State) LoadPlaylists(ctx context.Context) ([]pluginapi.Playlist, error) + func (s *State) NextRoam(ctx context.Context) (pluginapi.Track, error) + func (s *State) Playlist(id int64) (pluginapi.Playlist, bool) + func (s *State) Playlists() []pluginapi.Playlist + func (s *State) Provider() *backend.Provider + func (s *State) RemoveFromHistory(ctx context.Context, tr pluginapi.Track) error + func (s *State) RemoveFromPlaylist(ctx context.Context, pl pluginapi.Playlist, tr pluginapi.Track) error + func (s *State) RenamePlaylist(ctx context.Context, pl pluginapi.Playlist, name string) error + func (s *State) ReportPlay(ctx context.Context, tr *pluginapi.Track) error + func (s *State) RoamID() string + func (s *State) SetConfig(cfg backend.Config) + func (s *State) SetError(err error) + func (s *State) SetFavorite(ctx context.Context, tr *pluginapi.Track, liked bool) error + func (s *State) SetLiked(id int64, liked bool) + func (s *State) SetPlaylists(lists []pluginapi.Playlist) + func (s *State) SetPost(post func(func())) + func (s *State) SetRoamID(id string) + func (s *State) StartRoam(ctx context.Context) (pluginapi.Track, error) + type TrackView struct + Cover string + Favorite func(pluginapi.Track, bool) + Header func(*ui.Context) + HeaderSkeleton func(*ui.Context) + Liked func(int64) bool + Menu func(*ui.Menu, *pluginapi.Track, int64) + OnPlay func(int) + ShowAlbum bool + Sub string + Title string