-
Notifications
You must be signed in to change notification settings - Fork 5
/
IAPProduct.h
26 lines (21 loc) · 911 Bytes
/
IAPProduct.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#import <Foundation/Foundation.h>
@protocol IAPProductObserver;
@interface IAPProduct : NSObject
@property (nonatomic, readonly, strong) NSString* identifier;
@property (nonatomic, readonly, strong) NSString* price;
@property (nonatomic, readonly, assign) BOOL isLoading;
@property (nonatomic, readonly, assign) BOOL isReadyForSale;
@property (nonatomic, readonly, assign) BOOL isPurchased;
@property (nonatomic, readonly, assign) BOOL isError;
@property (nonatomic, readonly, assign) BOOL isPurchasing;
@property (nonatomic, readonly, assign) BOOL isRestored;
@property (nonatomic, readonly, assign) BOOL isRestoring;
- (void)addObserver:(id<IAPProductObserver>)iapProductObserver;
- (void)removeObserver:(id<IAPProductObserver>)iapProductObserver;
- (void)purchase;
- (void)restorePurchase;
@end
@protocol IAPProductObserver <NSObject>
@optional
- (void)iapProductWasUpdated:(IAPProduct*)iapProduct;
@end