SPTAppRemoteDelegate Protocol Reference

Conforms to NSObject
Declared in SPTAppRemote.h

Overview

The SPTAppRemoteDelegate receives updates from the SPTAppRemote whenever something has happened with the connection.

– appRemoteDidEstablishConnection: required method

Called when the App Remote has established connection with the Spotify app.

- (void)appRemoteDidEstablishConnection:(SPTAppRemote *)appRemote

Parameters

appRemote

The transport that has connected.

Declared In

SPTAppRemote.h

– appRemote:didFailConnectionAttemptWithError: required method

Called when the connection attempt made by the App Remote failed.

- (void)appRemote:(SPTAppRemote *)appRemote didFailConnectionAttemptWithError:(nullable NSError *)error

Parameters

appRemote

The App Remote that failed to connect.

error

The error that occurred.

Declared In

SPTAppRemote.h

– appRemote:didDisconnectWithError: required method

Called when the App Remote has disconnected.

- (void)appRemote:(SPTAppRemote *)appRemote didDisconnectWithError:(nullable NSError *)error

Parameters

appRemote

The App Remote that disconnected.

error

The error that caused the disconnect, or nil if the disconnect was explicit.

Discussion

Note: All APIs will be released by the App Remote at this point. The will no longer be usable, and so you should release them as well.

Declared In

SPTAppRemote.h