コード例 #1
0
        /// <summary>
        /// Dispose
        /// </summary>
        /// <param name="disposing"></param>
        public override void Dispose(bool disposing)
        {
            if (disposed)
            {
                base.Dispose(disposing);
                return;
            }

            disposed = true;

            if (!disposing)
            {
                base.Dispose(disposing);
                return;
            }

            if (paymentObserver != null)
            {
                SKPaymentQueue.DefaultQueue.RemoveTransactionObserver(paymentObserver);
                paymentObserver.Dispose();
                paymentObserver = null;
            }


            base.Dispose(disposing);
        }
コード例 #2
0
 /// <summary>
 /// Default constructor for In App Billing on iOS
 /// </summary>
 public InAppBillingImplementation()
 {
     paymentObserver = new PaymentObserver(OnPurchaseComplete, OnShouldAddStorePayment);
     SKPaymentQueue.DefaultQueue.AddTransactionObserver(paymentObserver);
 }
コード例 #3
0
 /// <summary>
 /// Default constructor for In App Billing on iOS
 /// </summary>
 public InAppBillingImplementation()
 {
     paymentObserver = new PaymentObserver();
     SKPaymentQueue.DefaultQueue.AddTransactionObserver(paymentObserver);
 }