SPTAppRemoteConnectivityAPI Protocol Reference

Conforms to NSObject
Declared in SPTAppRemoteConnectivityAPI.h

Overview

The @c SPTAppRemoteConnectivityAPI class is used to get connectivity data from the Spotify app.

  delegate required method

The delegate receiving player state updates

@property (nonatomic, weak) id<SPTAppRemoteConnectivityAPIDelegate> delegate

Declared In

SPTAppRemoteConnectivityAPI.h

– subscribeToConnectivityState: required method

Subscribes to connection state changes from the Spotify app.

- (void)subscribeToConnectivityState:(nullable SPTAppRemoteCallback)callback

Parameters

callback

On success result will be YES On error result will be nil and error set

Discussion

Note: Implement SPTAppRemoteConnectivityAPIDelegate and set yourself as delegate in order to be notified when the the connection state changes.

Declared In

SPTAppRemoteConnectivityAPI.h

– unsubscribeToConnectivityState: required method

Stops subscribing to connection state changes from the Spotify app.

- (void)unsubscribeToConnectivityState:(nullable SPTAppRemoteCallback)callback

Parameters

callback

On success result will be YES On error result will be nil and error set

Declared In

SPTAppRemoteConnectivityAPI.h