Billing.BillingService.CheckBillingSupportedMethod C# (CSharp) Метод

CheckBillingSupportedMethod() приватный Метод

private CheckBillingSupportedMethod ( ) : bool
Результат bool
        public virtual bool CheckBillingSupportedMethod()
        {
            return new CheckBillingSupported(this).RunRequest();
        }

Same methods

BillingService::CheckBillingSupportedMethod ( string itemType ) : bool

Usage Example

        private void StartBillingStuff()
        {
            _handler = new Handler();
            _inAppBillingDemoObserver = new InAppBillingDemoPurchaseObserver(this, _handler);
            _billingService = new BillingService();
            _billingService.Context = this;
            ResponseHandler.Register(_inAppBillingDemoObserver);
            var inAppsSupported = _billingService.CheckBillingSupportedMethod(Consts.ITEM_TYPE_INAPP);
            var subscriptionsSupported = _billingService.CheckBillingSupportedMethod(Consts.ITEM_TYPE_SUBSCRIPTION);

            _purchaseDatabase = new PurchaseDatabase(this);
            OwnedItemsCursor = _purchaseDatabase.QueryAllPurchasedItems();
            StartManagingCursor(OwnedItemsCursor);
            var from = new string[] { PurchaseDatabase.PURCHASED_PRODUCT_ID_COL, PurchaseDatabase.PURCHASED_QUANTITY_COL };
            var to = new int[] { Resource.Id.itemName };
            _ownedItemsAdapter = new SimpleCursorAdapter(this, Resource.Layout.Main, OwnedItemsCursor, from, to);

            if (OwnedItems.Count == 0)
                ItemName.Text = "No purchases";
        }