예제 #1
0
 /// <summary>
 /// Finishes background processing and releases all resources.
 /// </summary>
 public void Dispose()
 {
     try
     {
         SdkEngine.BeaconActionResolved -= OnBeaconActionResolvedAsync;
     }
     finally
     {
         SdkEngine.Dispose();
     }
 }
예제 #2
0
        /// <summary>
        /// De-initializes the SDK.
        /// </summary>
        /// <param name="stopScanner">If true, will stop scanner if running.</param>
        public void Deinitialize(bool stopScanner)
        {
            if (IsInitialized)
            {
                if (stopScanner)
                {
                    StopScanner();
                }

                SdkEngine.Dispose();
            }
            AppSettings = null;
            Dispose();
        }