You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
657 B
24 lines
657 B
#pragma once |
|
#import <StoreKit/StoreKit.h> |
|
#import "LifeCycleListener.h" |
|
|
|
@protocol UnityEarlyTransactionObserverDelegate <NSObject> |
|
|
|
- (void)promotionalPurchaseAttempted:(SKPayment *)payment; |
|
|
|
@end |
|
|
|
@interface UnityEarlyTransactionObserver : NSObject<SKPaymentTransactionObserver, LifeCycleListener> { |
|
NSMutableSet *m_QueuedPayments; |
|
} |
|
|
|
@property BOOL readyToReceiveTransactionUpdates; |
|
|
|
// The delegate exists so that the observer can notify it of attempted promotional purchases. |
|
@property(nonatomic, weak) id<UnityEarlyTransactionObserverDelegate> delegate; |
|
|
|
+ (UnityEarlyTransactionObserver*)defaultObserver; |
|
|
|
- (void)initiateQueuedPayments; |
|
|
|
@end
|
|
|