Skip to content

Commit

Permalink
Spotify iOS SDK v1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jalopezcar committed Apr 15, 2024
1 parent cdbdcb3 commit 2ab6860
Show file tree
Hide file tree
Showing 125 changed files with 433 additions and 633 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Spotify iOS SDK v1.2.5

What's New:

- Adds Privacy Manifest (xcframework only)

## Spotify iOS SDK v1.2.4

What's New:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
12EE82852BCD44D7003F62A0 /* SpotifyiOS.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 12EE82842BCD44D7003F62A0 /* SpotifyiOS.xcframework */; };
12EE82862BCD44D7003F62A0 /* SpotifyiOS.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 12EE82842BCD44D7003F62A0 /* SpotifyiOS.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
24C075932344A28C00691840 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24C075922344A28C00691840 /* SceneDelegate.swift */; };
24DFF77423F2F0DA00FF073B /* SpotifyiOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24DFF77323F2F0DA00FF073B /* SpotifyiOS.framework */; };
2BAD4B251CFD66290033DE75 /* My-Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2BAD4B241CFD66290033DE75 /* My-Extensions.swift */; };
5468B2592110D8440097D1D3 /* SpeedPickerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5468B2582110D8440097D1D3 /* SpeedPickerViewController.swift */; };
998FF9BE1D3E54AC003E339B /* ConnectionStatusIndicatorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 998FF9BD1D3E54AC003E339B /* ConnectionStatusIndicatorView.swift */; };
Expand All @@ -23,9 +24,23 @@
F6EB42E31D2BB0D800F57322 /* ContentCollectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6EB42E21D2BB0D800F57322 /* ContentCollectionViewController.swift */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
12EE82872BCD44D7003F62A0 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
12EE82862BCD44D7003F62A0 /* SpotifyiOS.xcframework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
12EE82842BCD44D7003F62A0 /* SpotifyiOS.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = SpotifyiOS.xcframework; path = ../../SpotifyiOS.xcframework; sourceTree = "<group>"; };
24C075922344A28C00691840 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
24DFF77323F2F0DA00FF073B /* SpotifyiOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SpotifyiOS.framework; path = ../../SpotifyiOS.framework; sourceTree = "<group>"; };
2BAD4B241CFD66290033DE75 /* My-Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "My-Extensions.swift"; sourceTree = "<group>"; };
5468B2582110D8440097D1D3 /* SpeedPickerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpeedPickerViewController.swift; sourceTree = "<group>"; };
998FF9BD1D3E54AC003E339B /* ConnectionStatusIndicatorView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConnectionStatusIndicatorView.swift; sourceTree = "<group>"; };
Expand All @@ -48,7 +63,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
24DFF77423F2F0DA00FF073B /* SpotifyiOS.framework in Frameworks */,
12EE82852BCD44D7003F62A0 /* SpotifyiOS.xcframework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -97,7 +112,7 @@
F4F974011CAD60580036411D /* Frameworks */ = {
isa = PBXGroup;
children = (
24DFF77323F2F0DA00FF073B /* SpotifyiOS.framework */,
12EE82842BCD44D7003F62A0 /* SpotifyiOS.xcframework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand All @@ -112,6 +127,7 @@
F4F973E81CAD60320036411D /* Sources */,
F4F973E91CAD60320036411D /* Frameworks */,
F4F973EA1CAD60320036411D /* Resources */,
12EE82872BCD44D7003F62A0 /* Embed Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -325,7 +341,8 @@
MTL_ENABLE_DEBUG_INFO = NO;
OTHER_LDFLAGS = "-ObjC";
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand All @@ -337,7 +354,10 @@
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = 2FNC3A47ZF;
INFOPLIST_FILE = NowPlayingView/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.testappremote;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "NowPlayingView/NowPlayingView-Bridging-Header.h";
Expand All @@ -353,7 +373,10 @@
CLANG_ENABLE_MODULES = YES;
DEVELOPMENT_TEAM = 2FNC3A47ZF;
INFOPLIST_FILE = NowPlayingView/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.testappremote;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "NowPlayingView/NowPlayingView-Bridging-Header.h";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
archiveVersion = 1;
classes = {
};
objectVersion = 48;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
12EE82892BCD450F003F62A0 /* SpotifyiOS.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 12EE82882BCD450F003F62A0 /* SpotifyiOS.xcframework */; };
12EE828A2BCD450F003F62A0 /* SpotifyiOS.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 12EE82882BCD450F003F62A0 /* SpotifyiOS.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
35029C521F5F476800383619 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 35029C511F5F476800383619 /* AppDelegate.m */; };
35029C551F5F476800383619 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 35029C541F5F476800383619 /* ViewController.m */; };
35029C5A1F5F476800383619 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 35029C591F5F476800383619 /* Assets.xcassets */; };
35029C5D1F5F476800383619 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 35029C5B1F5F476800383619 /* LaunchScreen.storyboard */; };
35029C601F5F476800383619 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 35029C5F1F5F476800383619 /* main.m */; };
3518DFFB1F99674A00A5313C /* ConnectButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 3518DFFA1F99674A00A5313C /* ConnectButton.m */; };
3518DFFE1F99983F00A5313C /* ConnectView.m in Sources */ = {isa = PBXBuildFile; fileRef = 3518DFFD1F99983F00A5313C /* ConnectView.m */; };
5413459A20D100AD00FD05F7 /* SpotifyiOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5413459920D100AD00FD05F7 /* SpotifyiOS.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -34,13 +35,15 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
12EE828A2BCD450F003F62A0 /* SpotifyiOS.xcframework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
12EE82882BCD450F003F62A0 /* SpotifyiOS.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = SpotifyiOS.xcframework; path = ../../SpotifyiOS.xcframework; sourceTree = "<group>"; };
35029C4D1F5F476800383619 /* SPTLoginSampleApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SPTLoginSampleApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
35029C501F5F476800383619 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
35029C511F5F476800383619 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
Expand All @@ -54,7 +57,6 @@
3518DFFA1F99674A00A5313C /* ConnectButton.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ConnectButton.m; sourceTree = "<group>"; };
3518DFFC1F99983F00A5313C /* ConnectView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ConnectView.h; sourceTree = "<group>"; };
3518DFFD1F99983F00A5313C /* ConnectView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ConnectView.m; sourceTree = "<group>"; };
5413459920D100AD00FD05F7 /* SpotifyiOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SpotifyiOS.framework; path = ../../SpotifyiOS.framework; sourceTree = "<group>"; };
54D50C4E20C87A480035B73A /* SPTLoginSampleAppUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SPTLoginSampleAppUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

Expand All @@ -63,7 +65,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
5413459A20D100AD00FD05F7 /* SpotifyiOS.framework in Frameworks */,
12EE82892BCD450F003F62A0 /* SpotifyiOS.xcframework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -117,7 +119,7 @@
F7AACE2064F336ABCC7C6D5C /* Frameworks */ = {
isa = PBXGroup;
children = (
5413459920D100AD00FD05F7 /* SpotifyiOS.framework */,
12EE82882BCD450F003F62A0 /* SpotifyiOS.xcframework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -383,7 +385,10 @@
DEVELOPMENT_TEAM = 2FNC3A47ZF;
INFOPLIST_FILE = SPTLoginSampleApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.spotify.sdk.SPTLoginSampleApp;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -399,7 +404,10 @@
DEVELOPMENT_TEAM = 2FNC3A47ZF;
INFOPLIST_FILE = SPTLoginSampleApp/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.spotify.sdk.SPTLoginSampleApp;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -417,7 +425,11 @@
DEVELOPMENT_TEAM = 2FNC3A47ZF;
INFOPLIST_FILE = SPTLoginSampleAppUITests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = Spotify.SPTLoginSampleAppUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -435,7 +447,11 @@
DEVELOPMENT_TEAM = 2FNC3A47ZF;
INFOPLIST_FILE = SPTLoginSampleAppUITests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = Spotify.SPTLoginSampleAppUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
archiveVersion = 1;
classes = {
};
objectVersion = 48;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
541345A220D2A80300FD05F7 /* SpotifyiOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 541345A120D2A80300FD05F7 /* SpotifyiOS.framework */; };
12EE828C2BCD4536003F62A0 /* SpotifyiOS.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 12EE828B2BCD4536003F62A0 /* SpotifyiOS.xcframework */; };
12EE828D2BCD4536003F62A0 /* SpotifyiOS.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 12EE828B2BCD4536003F62A0 /* SpotifyiOS.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
54AC7EE020081243008CD692 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54AC7EDF20081243008CD692 /* AppDelegate.swift */; };
54AC7EE220081243008CD692 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54AC7EE120081243008CD692 /* ViewController.swift */; };
54AC7EE720081243008CD692 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 54AC7EE620081243008CD692 /* Assets.xcassets */; };
Expand All @@ -22,15 +23,16 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
12EE828D2BCD4536003F62A0 /* SpotifyiOS.xcframework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
12EE828B2BCD4536003F62A0 /* SpotifyiOS.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = SpotifyiOS.xcframework; path = ../../SpotifyiOS.xcframework; sourceTree = "<group>"; };
5413459E20D1049200FD05F7 /* SPTLoginSampleAppSwift-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SPTLoginSampleAppSwift-Bridging-Header.h"; sourceTree = "<group>"; };
541345A120D2A80300FD05F7 /* SpotifyiOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SpotifyiOS.framework; path = ../../SpotifyiOS.framework; sourceTree = "<group>"; };
54AC7EDC20081243008CD692 /* SPTLoginSampleAppSwift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SPTLoginSampleAppSwift.app; sourceTree = BUILT_PRODUCTS_DIR; };
54AC7EDF20081243008CD692 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
54AC7EE120081243008CD692 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
Expand All @@ -45,7 +47,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
541345A220D2A80300FD05F7 /* SpotifyiOS.framework in Frameworks */,
12EE828C2BCD4536003F62A0 /* SpotifyiOS.xcframework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -55,7 +57,7 @@
54073AB820C5D5300060E089 /* Frameworks */ = {
isa = PBXGroup;
children = (
541345A120D2A80300FD05F7 /* SpotifyiOS.framework */,
12EE828B2BCD4536003F62A0 /* SpotifyiOS.xcframework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -295,8 +297,9 @@
MTL_ENABLE_DEBUG_INFO = NO;
OTHER_LDFLAGS = "-ObjC";
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OBJC_BRIDGING_HEADER = "SPTLoginSampleAppSwift/SPTLoginSampleAppSwift-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand All @@ -308,7 +311,10 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 2FNC3A47ZF;
INFOPLIST_FILE = SPTLoginSampleAppSwift/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.spotify.sdk.SPTLoginSampleApp;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -323,7 +329,10 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 2FNC3A47ZF;
INFOPLIST_FILE = SPTLoginSampleAppSwift/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.spotify.sdk.SPTLoginSampleApp;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
1 change: 0 additions & 1 deletion SpotifyiOS.framework/Headers

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
@protocol SPTAppRemotePlayerAPI;
@protocol SPTAppRemoteUserAPI;
@protocol SPTAppRemoteContentAPI;
@protocol SPTAppRemoteConnectivityAPI;

NS_ASSUME_NONNULL_BEGIN

extern NSString * const SPTAppRemoteAccessTokenKey;
extern NSString * const SPTAppRemoteErrorKey;
extern NSString * const SPTAppRemoteErrorDescriptionKey;

/// The severity of log messages that the App Remote should log to console.
Expand Down Expand Up @@ -142,13 +144,26 @@ typedef NS_ENUM(NSUInteger, SPTAppRemoteLogLevel) {
*/
- (void)connect;

/**
* Attempts to connect to the Spotify application with a given session identifier.
*
* @discussion If the Spotify app is not running you will need to use authorizeAndPlayURI: to wake it up.
*
* @discussion If `authorizeAndPlayURI` was used without a given session identifier, `connect` should be used instead of this method.
*
* @param sessionIdentifier The unique session identifier which was used when calling
* `authorizeAndPlayURI:asRadio:additionalScopes:sessionIdentifier:`
*/
- (void)connectWithSessionIdentifier:(NSUUID *)sessionIdentifier;

/**
* Disconnect from the Spotify application
*/
- (void)disconnect;

/**
* Open Spotify app to obtain access token and start playback.
* The passed URI will start playing unless Spotify is already playing.
*
* @param URI The URI to play. Use a blank string to attempt to play the user's last song
*
Expand Down Expand Up @@ -185,6 +200,24 @@ typedef NS_ENUM(NSUInteger, SPTAppRemoteLogLevel) {
asRadio:(BOOL)asRadio
additionalScopes:(nullable NSArray<NSString *> *)additionalScopes;

/**
* Open Spotify app to obtain access token and start playback.
*
* @param playURI The URI to play. Use a blank string to attempt to play the user's last song
* @param asRadio `YES` to start radio for the given URI.
* @param additionalScopes An array of scopes in addition to `app-remote-control`. Can be nil if you only need `app-remote-control`
* @param sessionIdentifier An optional unique identifier for this specific session, which is used for analytics purposes. Every new attempt to
* connect to the Spotify app should have a new identifier, but the identifier used here should then be reused for the accompanied call to
* `connectWithSessionIdentifier:`.
*
* @return `YES` if the Spotify app is installed and an authorization attempt can be made, otherwise `NO`.
* Note: The return `BOOL` here is not a measure of whether or not authentication succeeded, only a check if
* the Spotify app is installed and can attempt to handle the authorization request.
*/
- (BOOL)authorizeAndPlayURI:(NSString *)playURI
asRadio:(BOOL)asRadio
additionalScopes:(nullable NSArray<NSString *> *)additionalScopes
sessionIdentifier:(nullable NSUUID *)sessionIdentifier;
/**
* Parse out an access token or error description from a url passed to application:openURL:options:
*
Expand Down Expand Up @@ -230,6 +263,14 @@ typedef NS_ENUM(NSUInteger, SPTAppRemoteLogLevel) {
*/
@property (nullable, nonatomic, strong, readonly) id<SPTAppRemoteContentAPI> contentAPI;

/**
* The API used to get connectivity data from the Spotify app.
*
* @note Will only be populated when the App Remote is connected. If you retain this object you must release it on
* disconnect.
*/
@property (nullable, nonatomic, strong, readonly) id<SPTAppRemoteConnectivityAPI> connectivityAPI;

#pragma mark Unavailable initializers

- (instancetype)init NS_UNAVAILABLE;
Expand Down
Loading

0 comments on commit 2ab6860

Please sign in to comment.