SPTAudioStreamingDelegate Protocol Reference
Conforms to | NSObject |
Declared in | SPTAudioStreamingController.h |
Instance Methods
audioStreaming:didReceiveError:
Called on error
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didReceiveError:(NSError *)error
Parameters
- audioStreaming
The object that sent the message.
- error
An NSError. Domain is SPTAudioStreamingErrorDomain and code is one of SpErrorCode
Declared In
SPTAudioStreamingController.h
audioStreaming:didReceiveMessage:
Called when the streaming controller recieved a message for the end user from the Spotify service.
- (void)audioStreaming:(SPTAudioStreamingController *)audioStreaming didReceiveMessage:(NSString *)message
Parameters
- audioStreaming
The object that sent the message.
- message
The message to display to the user.
Discussion
This string should be presented to the user in a reasonable manner.
Declared In
SPTAudioStreamingController.h
audioStreamingDidDisconnect:
Called when network connectivity is lost.
- (void)audioStreamingDidDisconnect:(SPTAudioStreamingController *)audioStreaming
Parameters
- audioStreaming
The object that sent the message.
Declared In
SPTAudioStreamingController.h
audioStreamingDidEncounterTemporaryConnectionError:
Called when the streaming controller encounters a temporary connection error.
- (void)audioStreamingDidEncounterTemporaryConnectionError:(SPTAudioStreamingController *)audioStreaming
Parameters
- audioStreaming
The object that sent the message.
Discussion
You should not throw an error to the user at this point. The library will attempt to reconnect without further action.
Declared In
SPTAudioStreamingController.h
audioStreamingDidLogin:
Called when the streaming controller logs in successfully.
- (void)audioStreamingDidLogin:(SPTAudioStreamingController *)audioStreaming
Parameters
- audioStreaming
The object that sent the message.
Declared In
SPTAudioStreamingController.h