SPTAppRemoteConnectionParams Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | SPTAppRemoteConnectionParams.h |
Overview
The SPTAppRemoteconnectionParams represents connection parameters required in order to initiate a connection
with the Spotify app.
accessToken
The access token used to authorize the user with the Spotify app.
@property (nonatomic, copy, readwrite, nullable) NSString *accessTokenDeclared In
SPTAppRemoteConnectionParams.h
defaultImageSize
The desired size of received images. (0,0) acts as a wildcard and accepts any size.
@property (nonatomic, assign, readonly) struct CGSize defaultImageSizeDeclared In
SPTAppRemoteConnectionParams.h
imageFormat
The desired image format of received images.
@property (nonatomic, assign, readonly) SPTAppRemoteConnectionParamsImageFormat imageFormatDeclared In
SPTAppRemoteConnectionParams.h
– initWithAccessToken:defaultImageSize:imageFormat:
Initialize a set of new connection parameters.
- (instancetype)initWithAccessToken:(nullable NSString *)accessToken defaultImageSize:(struct CGSize)defaultImageSize imageFormat:(SPTAppRemoteConnectionParamsImageFormat)imageFormatParameters
accessToken |
The access token obtained after authentication. |
|---|---|
defaultImageSize |
The desired size of received images. (0,0) acts as a wildcard and accepts any size. |
imageFormat |
The desired image format of received images. |
Return Value
A set of connection parameters ready to be used when initiating a connection to the Spotify app.
Discussion
This is the designated initializer.
Declared In
SPTAppRemoteConnectionParams.h
protocolVersion
Version of the protocol
@property (nonatomic, assign, readonly) NSInteger protocolVersionDeclared In
SPTAppRemoteConnectionParams.h
roles
Roles
@property (nonatomic, copy, readonly) NSDictionary *rolesDeclared In
SPTAppRemoteConnectionParams.h
authenticationMethods
Authentication methods supported
@property (nonatomic, copy, readonly) NSArray *authenticationMethodsDeclared In
SPTAppRemoteConnectionParams.h