2018-10-04 16:59:07 -07:00
|
|
|
//
|
|
|
|
// PremiumManager.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by David Sinclair on 2018-10-04.
|
|
|
|
// Copyright © 2018 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <StoreKit/StoreKit.h>
|
|
|
|
#import "NewsBlurAppDelegate.h"
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface PremiumManager : NSObject
|
|
|
|
|
2022-06-22 21:35:54 -06:00
|
|
|
@property (nonatomic, strong) SKProduct * _Nullable premiumProduct;
|
|
|
|
@property (nonatomic, strong) SKProduct * _Nullable premiumArchiveProduct;
|
|
|
|
@property (nonatomic, strong) NSArray<NSArray<NSString *> *> *premiumReasons;
|
|
|
|
@property (nonatomic, strong) NSArray<NSArray<NSString *> *> *premiumArchiveReasons;
|
2018-10-04 16:59:07 -07:00
|
|
|
|
|
|
|
- (void)loadProducts;
|
|
|
|
- (void)purchase:(SKProduct *)product;
|
|
|
|
- (void)restorePurchase;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|