BarcodeTesting.Controllers.CameraOverLayView.StopWorker C# (CSharp) Method

StopWorker() public method

public StopWorker ( ) : void
return void
        public void StopWorker()
        {
            // starting timer
            if (WorkerTimer != null)
            {
                WorkerTimer.Invalidate();
                WorkerTimer.Dispose();
                WorkerTimer = null;
                NSRunLoop.Current.Dispose();
            }

            //Just in case
            _multiFormatOneDReader = null;
            hints = null;
        }

Usage Example

Example #1
0
        public void BarCodeScanned(Result result)
        {
            if (OverlayView != null)
            {
                OverlayView.StopWorker();
            }

            if (_imageView != null)
            {
                _imageView.RemoveFromSuperview();
            }

            if (result != null)
            {
                BarCodeEventArgs    eventArgs = new BarCodeEventArgs(result);
                BarCodeEventHandler handler   = BarCodeEvent;
                if (handler != null)
                {
                    // Invokes the delegates.
                    handler(eventArgs);
                    BarCodeEvent = null;
                }
            }
        }