public ConsumableViewController()
     : base()
 {
     // two products for sale on this page
     products = new List<string>() {Buy5ProductId, Buy10ProductId};
     iap = new InAppPurchaseManager();
 }
示例#2
0
 public ConsumableViewController() : base()
 {
     // two products for sale on this page
     products = new List <string>()
     {
         Buy5ProductId, Buy10ProductId
     };
     iap = new InAppPurchaseManager();
 }
		public ConsumableViewController ()
		{
			// two products for sale on this page
			products = new List<string>() { Buy5ProductId, Buy10ProductId };

			iap = new InAppPurchaseManager();
			theObserver = new CustomPaymentObserver(iap);

			// Call this once upon startup of in-app-purchase activities
			// This also kicks off the TransactionObserver which handles the various communications
			SKPaymentQueue.DefaultQueue.AddTransactionObserver(theObserver);
		}
        public ConsumableViewController()
        {
            // two products for sale on this page
            products = new List <string>()
            {
                Buy5ProductId, Buy10ProductId
            };

            iap         = new InAppPurchaseManager();
            theObserver = new CustomPaymentObserver(iap);

            // Call this once upon startup of in-app-purchase activities
            // This also kicks off the TransactionObserver which handles the various communications
            SKPaymentQueue.DefaultQueue.AddTransactionObserver(theObserver);
        }
示例#5
0
 public CustomPaymentObserver(InAppPurchaseManager manager)
 {
     theManager = manager;
 }
		public CustomPaymentObserver(InAppPurchaseManager manager)
		{
			theManager = manager;
		}