Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/ios/IAPManager.h
3185 views
1
#import <Foundation/Foundation.h>
2
#import <StoreKit/StoreKit.h>
3
4
#include "../ppsspp_config.h"
5
6
#if PPSSPP_PLATFORM(IOS_APP_STORE)
7
8
@interface IAPManager : NSObject <SKProductsRequestDelegate, SKPaymentTransactionObserver>
9
10
+ (instancetype)sharedIAPManager;
11
12
- (void)buyGoldWithRequestID:(int)requestID;
13
- (void)restorePurchasesWithRequestID:(int)requestID;
14
- (BOOL)isGoldUnlocked;
15
- (void)startObserving;
16
- (void)updateIcon:(bool)force;
17
18
@end
19
20
#endif
21
22