forked from xamarin/xamarin-macios
-
Notifications
You must be signed in to change notification settings - Fork 1
StoreKit tvOS xcode9 beta1
Sebastien Pouliot edited this page Jul 26, 2017
·
3 revisions
#StoreKit.framework ##Sebastien
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKCloudServiceController.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKCloudServiceController.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKCloudServiceController.h 2017-02-19 17:16:03.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKCloudServiceController.h 2017-05-21 23:56:47.000000000 -0400
@@ -2,7 +2,7 @@
// SKCloudServiceController.h
// StoreKit
//
-// Copyright © 2015-2016 Apple Inc. All rights reserved.
+// Copyright © 2015-2017 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@@ -29,14 +29,18 @@
+ (SKCloudServiceAuthorizationStatus)authorizationStatus;
+ (void)requestAuthorization:(void(^)(SKCloudServiceAuthorizationStatus status))handler;
-- (void)requestStorefrontIdentifierWithCompletionHandler:(void(^)(NSString * __nullable storefrontIdentifier, NSError * __nullable error))completionHandler;
-- (void)requestCapabilitiesWithCompletionHandler:(void(^)(SKCloudServiceCapability capabilities, NSError * __nullable error))completionHandler;
+- (void)requestCapabilitiesWithCompletionHandler:(void(^)(SKCloudServiceCapability capabilities, NSError * _Nullable error))completionHandler;
-- (void)requestPersonalizationTokenForClientToken:(NSString *)clientToken withCompletionHandler:(void(^)(NSString * __nullable personalizationToken, NSError * __nullable error))completionHandler NS_AVAILABLE_IOS(10_3);
+- (void)requestStorefrontCountryCodeWithCompletionHandler:(void(^)(NSString * _Nullable storefrontCountryCode, NSError * _Nullable error))completionHandler NS_AVAILABLE_IOS(11_0);
+- (void)requestStorefrontIdentifierWithCompletionHandler:(void(^)(NSString * _Nullable storefrontIdentifier, NSError * _Nullable error))completionHandler;
+
+- (void)requestUserTokenForDeveloperToken:(NSString *)developerToken completionHandler:(void(^)(NSString * _Nullable userToken, NSError * _Nullable error))completionHandler NS_AVAILABLE_IOS(11_0);
+- (void)requestPersonalizationTokenForClientToken:(NSString *)clientToken withCompletionHandler:(void(^)(NSString * _Nullable personalizationToken, NSError * _Nullable error))completionHandler API_DEPRECATED_WITH_REPLACEMENT("requestUserTokenForDeveloperToken:completionHandler:", ios(10.3, 11.0));
@end
-SK_EXTERN NSString * const SKStorefrontIdentifierDidChangeNotification NS_AVAILABLE_IOS(9_3);
-SK_EXTERN NSString * const SKCloudServiceCapabilitiesDidChangeNotification NS_AVAILABLE_IOS(9_3);
+SK_EXTERN NSNotificationName const SKCloudServiceCapabilitiesDidChangeNotification NS_AVAILABLE_IOS(9_3);
+SK_EXTERN NSNotificationName const SKStorefrontCountryCodeDidChangeNotification NS_AVAILABLE_IOS(11_0);
+SK_EXTERN NSNotificationName const SKStorefrontIdentifierDidChangeNotification NS_AVAILABLE_IOS(9_3);
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKCloudServiceSetupViewController.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKCloudServiceSetupViewController.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKCloudServiceSetupViewController.h 2017-02-19 17:16:03.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKCloudServiceSetupViewController.h 2017-05-21 23:56:47.000000000 -0400
@@ -2,7 +2,7 @@
// SKCloudServiceSetupViewController.h
// StoreKit
//
-// Copyright © 2016 Apple Inc. All rights reserved.
+// Copyright © 2016-2017 Apple Inc. All rights reserved.
//
#import <StoreKit/StoreKitDefines.h>
@@ -12,6 +12,7 @@
typedef NSString * SKCloudServiceSetupOptionsKey NS_STRING_ENUM;
typedef NSString * SKCloudServiceSetupAction NS_STRING_ENUM;
+typedef NSString * SKCloudServiceSetupMessageIdentifier NS_STRING_ENUM;
@protocol SKCloudServiceSetupViewControllerDelegate;
@@ -45,13 +46,24 @@
SK_EXTERN SKCloudServiceSetupOptionsKey const SKCloudServiceSetupOptionsITunesItemIdentifierKey NS_SWIFT_NAME(iTunesItemIdentifier) NS_AVAILABLE_IOS(10_1);
/// iTunes Store affiliate token (NSString).
-SK_EXTERN SKCloudServiceSetupOptionsKey const SKCloudServiceSetupOptionsAffiliateTokenKey NS_AVAILABLE_IOS(10_3);
+SK_EXTERN SKCloudServiceSetupOptionsKey const SKCloudServiceSetupOptionsAffiliateTokenKey NS_SWIFT_NAME(affiliateToken) NS_AVAILABLE_IOS(10_3);
/// iTunes Store affiliate campaign token (NSString).
-SK_EXTERN SKCloudServiceSetupOptionsKey const SKCloudServiceSetupOptionsCampaignTokenKey NS_AVAILABLE_IOS(10_3);
+SK_EXTERN SKCloudServiceSetupOptionsKey const SKCloudServiceSetupOptionsCampaignTokenKey NS_SWIFT_NAME(campaignToken) NS_AVAILABLE_IOS(10_3);
+
+/// Identifier used to select the main message presented to the user for this setup view (SKCloudServiceSetupMessageIdentifier).
+/// When missing, the setup view will be configured in a way that is equivalent to using SKCloudServiceSetupMessageIdentifierJoin.
+SK_EXTERN SKCloudServiceSetupOptionsKey const SKCloudServiceSetupOptionsMessageIdentifierKey NS_SWIFT_NAME(messageIdentifier) NS_AVAILABLE_IOS(11_0);
// Supported actions for setup entry point.
SK_EXTERN SKCloudServiceSetupAction const SKCloudServiceSetupActionSubscribe NS_AVAILABLE_IOS(10_1);
+// Supported message identifiers.
+
+SK_EXTERN SKCloudServiceSetupMessageIdentifier const SKCloudServiceSetupMessageIdentifierJoin NS_AVAILABLE_IOS(11_0);
+SK_EXTERN SKCloudServiceSetupMessageIdentifier const SKCloudServiceSetupMessageIdentifierConnect NS_AVAILABLE_IOS(11_0);
+SK_EXTERN SKCloudServiceSetupMessageIdentifier const SKCloudServiceSetupMessageIdentifierAddMusic NS_AVAILABLE_IOS(11_0);
+SK_EXTERN SKCloudServiceSetupMessageIdentifier const SKCloudServiceSetupMessageIdentifierPlayMusic NS_AVAILABLE_IOS(11_0);
+
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKPaymentQueue.h /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKPaymentQueue.h
--- /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKPaymentQueue.h 2016-08-01 23:15:17.000000000 -0400
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKPaymentQueue.h 2017-05-22 01:14:29.000000000 -0400
@@ -11,6 +11,7 @@
@class SKDownload;
@class SKPayment;
@class SKPaymentTransaction;
+@class SKProduct;
@protocol SKPaymentTransactionObserver;
NS_ASSUME_NONNULL_BEGIN
@@ -74,6 +75,9 @@
// Sent when the download state has changed.
- (void)paymentQueue:(SKPaymentQueue *)queue updatedDownloads:(NSArray<SKDownload *> *)downloads NS_AVAILABLE_IOS(6_0);
+// Sent when a user initiates an IAP buy from the App Store
+- (BOOL)paymentQueue:(SKPaymentQueue *)queue shouldAddStorePayment:(SKPayment *)payment forProduct:(SKProduct *)product NS_SWIFT_NAME(paymentQueue(_:shouldAddStorePayment:for:)) NS_AVAILABLE_IOS(11_0);
+
@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.apinotes /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.apinotes
--- /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.apinotes 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.apinotes 2017-05-21 23:56:47.000000000 -0400
@@ -0,0 +1,9 @@
+---
+Name: StoreKit
+SwiftVersions:
+- Version: 3
+ Globals:
+ - Name: "SKCloudServiceSetupOptionsAffiliateTokenKey"
+ SwiftName: "affiliateTokenKey"
+ - Name: "SKCloudServiceSetupOptionsCampaignTokenKey"
+ SwiftName: "campaignTokenKey"