#pragma once #import #import "LifeCycleListener.h" @protocol UnityEarlyTransactionObserverDelegate - (void)promotionalPurchaseAttempted:(SKPayment *)payment; @end @interface UnityEarlyTransactionObserver : NSObject { NSMutableSet *m_QueuedPayments; } @property BOOL readyToReceiveTransactionUpdates; // The delegate exists so that the observer can notify it of attempted promotional purchases. @property(nonatomic, weak) id delegate; + (UnityEarlyTransactionObserver*)defaultObserver; - (void)initiateQueuedPayments; @end