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

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

Binds to the MarketBillingService and returns true if the bind succeeded.
private BindToMarketBillingService ( ) : bool
Результат bool
        private bool BindToMarketBillingService()
        {
            try
            {
                if (Consts.DEBUG)
                {
                    Log.Info(TAG, "binding to Market billing service");
                }
                bool bindResult = BindService(new Intent(Consts.MARKET_BILLING_SERVICE_ACTION), this, Bind.AutoCreate); // ServiceConnection.

                if (bindResult)
                {
                    return true;
                }
                else
                {
                    Log.Error(TAG, "Could not bind to service.");
                }
            }
            catch (SecurityException e)
            {
                Log.Error(TAG, "Security exception: " + e);
            }
            return false;
        }