-
Notifications
You must be signed in to change notification settings - Fork 1
/
IAPHelper.h
32 lines (26 loc) · 963 Bytes
/
IAPHelper.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
27
28
29
30
31
32
//
// IAPHelper.h
// GolfSwingMeter
//
// Created by Liangjun Jiang on 7/20/12.
// Copyright (c) 2012 ByPass Lane. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "StoreKit/StoreKit.h"
#define kProductsLoadedNotification @"ProductsLoaded"
#define kProductPurchasedNotification @"ProductPurchased"
#define kProductPurchaseFailedNotification @"ProductPurchaseFailed"
@interface IAPHelper : NSObject<SKProductsRequestDelegate, SKPaymentTransactionObserver>{
NSSet *_produtIdentifiers;
NSArray *_products;
NSMutableSet *_purchasedProducts;
SKProductsRequest *_request;
}
@property (retain) NSSet *productIdentifier;
@property (retain) NSArray *products;
@property (retain) NSMutableSet *purchasedProducts;
@property (retain) SKProductsRequest *request;
- (void)requestProducts;
- (id)initWithProductIdentifiers:(NSSet *)productIdentifiers;
- (void)buyProductIdentifier:(NSString *)productIdentifier;
@end