Struct spotify::Spotify [] [src]

pub struct Spotify { /* fields omitted */ }

The Spotify API.

Methods

impl Spotify
[src]

Implements Spotify.

Connects to the local Spotify client.

Moves self to a new thread and begins polling the client status. Sends the updated status to the specified closure, together with information of which fields had changed since the last update. Returns the JoinHandle of the new thread.

Fetches the current status from the client.

Optionally plays a track or adds it to the queue.

Pauses the currently playing track. Has no effect if the track is already paused.

Resumes the currently paused track. Has no effect if the track is already playing.