public static interface Connector.ConnectionListener
Modifier and Type | Method and Description |
---|---|
void |
onConnected(SpotifyAppRemote spotifyAppRemote)
Called when connection to the Spotify app has been established
|
void |
onFailure(java.lang.Throwable error)
Called when connection to the Spotify app fails or is lost See
CouldNotFindSpotifyApp com.spotify.android.appremote.api.error.LoggedOutException SpotifyConnectionTerminatedException |
void onConnected(SpotifyAppRemote spotifyAppRemote)
spotifyAppRemote
- A valid non null SpotifyAppRemote
void onFailure(java.lang.Throwable error)
CouldNotFindSpotifyApp
com.spotify.android.appremote.api.error.LoggedOutException
SpotifyConnectionTerminatedException
error
- associated with why/how the connection failed or broke