mpris

package
v0.0.0-...-e62810a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

Conn is a single MPRIS DBus connection.

func New

func New() (*Conn, error)

New creates a new MPRIS connection. It is not ready to be used until PassthroughEvents is called.

func (*Conn) Close

func (c *Conn) Close() error

Close closes the current DBus connection and destroys background workers. If c is nil, then Close returns nil.

func (*Conn) PassthroughEvents

func (c *Conn) PassthroughEvents(w *ui.MainWindow) muse.EventHandler

PassthroughEvents passes-through events from the returned EventHandler into MainWindow. Events that are intercepted will update the MPRIS state after they're updated in the UI using w's methods.

func (*Conn) Update

func (c *Conn) Update(s *state.State)

Update signals to MPRIS to update the properties from state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL