コード例 #1
0
 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();
 }
コード例 #3
0
		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);
		}
コード例 #4
0
        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;
 }
コード例 #6
0
		public CustomPaymentObserver(InAppPurchaseManager manager)
		{
			theManager = manager;
		}