Billing.BillingService.BillingRequest.RunIfConnected C# (CSharp) Method

RunIfConnected() public method

Try running the request directly if the service is already connected.
public RunIfConnected ( ) : bool
return bool
            public virtual bool RunIfConnected()
            {
                if (Consts.DEBUG)
                {
                    Log.Debug(TAG, this.GetType().Name);
                }
                if (mService != null)
                {
                    try
                    {
                        mRequestId = Run();
                        if (Consts.DEBUG)
                        {
                            Log.Debug(TAG, "request id: " + mRequestId);
                        }
                        if (mRequestId >= 0)
                        {
                            mSentRequests[mRequestId] = this;
                        }
                        return true;
                    }
                    catch (RemoteException e)
                    {
                        OnRemoteException(e);
                    }
                }
                return false;
            }