Exemple #1
0
        void StartScanning()
        {
            var success = _scanView.StartScanningAndReturnError(out _error);

            if (!success)
            {
                (_alert = new UIAlertView("Error", _error.DebugDescription, (IUIAlertViewDelegate)null, "OK", null)).Show();
            }
        }
Exemple #2
0
        /*
         * This is the place where we tell Anyline to start receiving and displaying images from the camera.
         * Success/error tells us if everything went fine.
         */
        public void StartAnyline()
        {
            if (isScanning)
            {
                return;
            }

            error   = null;
            success = anylineEnergyView.StartScanningAndReturnError(out error);

            if (!success)
            {
                (alert = new UIAlertView("Error", error.DebugDescription, null, "OK", null)).Show();
            }
            else
            {
                isScanning = true;
            }
        }
        /*
         * This is the place where we tell Anyline to start receiving and displaying images from the camera.
         * Success/error tells us if everything went fine.
         */
        public void StartAnyline()
        {
            _barcodeResult = "";

            if (_isScanning)
            {
                return;
            }

            _error   = null;
            _success = _anylineEnergyView.StartScanningAndReturnError(out _error);

            if (!_success)
            {
                (_alert = new UIAlertView("Error", _error.DebugDescription, (IUIAlertViewDelegate)null, "OK", null)).Show();
            }
            else
            {
                _isScanning = true;
            }
        }