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 ¶
New creates a new MPRIS connection. It is not ready to be used until PassthroughEvents is called.
func (*Conn) Close ¶
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.
Click to show internal directories.
Click to hide internal directories.