Documentation
¶
Index ¶
- type Platform
- func (p *Platform) LaunchMedia(cfg *config.Instance, path string, launcher *platforms.Launcher, ...) error
- func (p *Platform) Launchers(cfg *config.Instance) []platforms.Launcher
- func (p *Platform) ReturnToMenu() error
- func (*Platform) Settings() platforms.Settings
- func (p *Platform) StartPost(cfg *config.Instance, launcherManager platforms.LauncherContextManager, ...) error
- func (p *Platform) Stop() error
- func (p *Platform) SupportedReaders(cfg *config.Instance) []readers.Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
Platform implements the generic Linux platform. This is the reference implementation for Linux-family platforms with full launcher support including Kodi, Steam, Lutris, and Heroic.
func NewPlatform ¶ added in v2.8.0
func NewPlatform() *Platform
NewPlatform creates a new Linux platform instance.
func (*Platform) LaunchMedia ¶
func (p *Platform) LaunchMedia( cfg *config.Instance, path string, launcher *platforms.Launcher, db *database.Database, opts *platforms.LaunchOptions, ) error
LaunchMedia launches media using the appropriate launcher.
func (*Platform) Launchers ¶
Launchers returns the available launchers for Linux. Linux supports the full set of launchers: Kodi (8 types), Steam, Lutris, Heroic, WebBrowser, and Generic scripts.
func (*Platform) ReturnToMenu ¶ added in v2.7.0
ReturnToMenu stops the active media on desktop Linux. Desktop Linux has no menu concept, so this just stops any running game/media.
func (*Platform) StartPost ¶
func (p *Platform) StartPost( cfg *config.Instance, launcherManager platforms.LauncherContextManager, activeMedia func() *models.ActiveMedia, setActiveMedia func(*models.ActiveMedia), db *database.Database, ) error
StartPost initializes the platform after service startup. Starts the Steam tracker if Steam is installed.