forked from xamarin/xamarin-macios
-
Notifications
You must be signed in to change notification settings - Fork 1
StoreKit tvOS xcode9 beta2
Sebastien Pouliot edited this page Jul 26, 2017
·
3 revisions
#StoreKit.framework ##Sebastien
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKProductStorePromotionController.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKProductStorePromotionController.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKProductStorePromotionController.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKProductStorePromotionController.h 2017-06-12 01:24:28.000000000 -0400
@@ -0,0 +1,33 @@
+//
+// SKProductStorePromotionController.h
+// StoreKit
+//
+// Copyright © 2017 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <StoreKit/StoreKitDefines.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@class SKProduct;
+
+typedef NS_ENUM(NSInteger, SKProductStorePromotionVisibility) {
+ SKProductStorePromotionVisibilityDefault,
+ SKProductStorePromotionVisibilityShow,
+ SKProductStorePromotionVisibilityHide,
+} NS_ENUM_AVAILABLE_IOS(11_0);
+
+SK_EXTERN_CLASS_AVAILABLE(11_0) @interface SKProductStorePromotionController : NSObject
+
++ (instancetype)defaultController NS_AVAILABLE_IOS(11_0);
+
+- (void)fetchStorePromotionVisibilityForProduct:(SKProduct *)product completionHandler:(nullable void (^)(SKProductStorePromotionVisibility storePromotionVisibility, NSError * _Nullable error))completionHandler NS_AVAILABLE_IOS(11_0);
+- (void)updateStorePromotionVisibility:(SKProductStorePromotionVisibility)promotionVisibility forProduct:(SKProduct *)product completionHandler:(nullable void (^)(NSError * _Nullable error))completionHandler NS_SWIFT_NAME(update(storePromotionVisibility:for:completionHandler:)) NS_AVAILABLE_IOS(11_0);
+
+- (void)fetchStorePromotionOrderWithCompletionHandler:(nullable void (^)(NSArray<SKProduct *> *storePromotionOrder, NSError * _Nullable error))completionHandler NS_AVAILABLE_IOS(11_0);
+- (void)updateStorePromotionOrder:(NSArray<SKProduct *> *)storePromotionOrder completionHandler:(nullable void (^)(NSError * _Nullable error))completionHandler NS_SWIFT_NAME(update(storePromotionOrder:completionHandler:)) NS_AVAILABLE_IOS(11_0);
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.h /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.h
--- /Applications/Xcode9-beta1.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.h 2017-05-21 23:56:47.000000000 -0400
+++ /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.h 2017-06-12 01:24:28.000000000 -0400
@@ -14,6 +14,7 @@
#import <StoreKit/SKPaymentTransaction.h>
#import <StoreKit/SKProduct.h>
#import <StoreKit/SKProductsRequest.h>
+#import <StoreKit/SKProductStorePromotionController.h>
#import <StoreKit/SKReceiptRefreshRequest.h>
#import <StoreKit/SKRequest.h>
#import <StoreKit/SKStoreProductViewController.h>