NewsBlur/clients/ios/Classes/PremiumManager.h
2022-06-22 21:35:54 -06:00

28 lines
724 B
Objective-C

//
// 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
@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;
- (void)loadProducts;
- (void)purchase:(SKProduct *)product;
- (void)restorePurchase;
@end
NS_ASSUME_NONNULL_END