public interface Connector
SpotifyAppRemote.CONNECTOR| Modifier and Type | Interface and Description |
|---|---|
static interface |
Connector.ConnectionListener |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(android.content.Context context,
ConnectionParams params,
Connector.ConnectionListener connectionListener)
Connect to get an instance of
SpotifyAppRemote |
void |
disconnect(SpotifyAppRemote spotifyAppRemote)
Disconnect a
SpotifyAppRemote from the Spotify app and release resources |
void connect(android.content.Context context,
ConnectionParams params,
Connector.ConnectionListener connectionListener)
SpotifyAppRemotecontext - a valid Android contextparams - parameters to identify and configure the connectionconnectionListener - a listener that will be called when the connection is successful,
fails or is lostvoid disconnect(SpotifyAppRemote spotifyAppRemote)
SpotifyAppRemote from the Spotify app and release resourcesspotifyAppRemote - the SpotifyAppRemote you want to disconnect or null (will do nothing)