示例#1
0
 public void dispose()
 {
     lock (mAsyncInProgressLock)
     {
         if (mAsyncInProgress)
         {
             throw new Exception($"Can't dispose because an async operation {mAsyncOperation} is in progress.");
         }
     }
     logDebug("Disposing.");
     mSetupDone = false;
     if (mServiceConn != null)
     {
         logDebug("Unbinding from service.");
         if (mContext != null)
         {
             mContext.UnbindService(mServiceConn);
         }
     }
     mDisposed    = true;
     mContext     = null;
     mServiceConn = null;
     //mService = null;
     mPurchaseListener = null;
 }
示例#2
0
        public void startSetup(IOnIabSetupFinishedListener listener)
        {
            //checkNotDisposed();
            if (mSetupDone)
            {
                throw new Java.Lang.IllegalStateException("IAB helper is already set up.");
            }
            // Connection to IAB service
            logDebug("Starting in-app billing setup.");

            mServiceConn = new ServiceConnection();
        }