Esempio n. 1
0
            public override void OnError(CameraDevice camera, CameraError error)
            {
                camera.Close();

                CameraView.ActiveCameraDevice = null;
                CameraView.OpeningCamera      = false;
            }
        public override void OnError(CameraDevice camera, Android.Hardware.Camera2.CameraError error)
        {
            camera.Close();

            if (renderer != null)
            {
                renderer.CameraDevice = null;
            }
        }
Esempio n. 3
0
 public override void OnError(CameraDevice camera, CameraError error)
 {
     camera.Close();
     if (Activity != null)
     {
         Activity.cameraDevice  = null;
         Activity.openingCamera = false;
     }
 }
Esempio n. 4
0
 public override void OnError
 (
     CameraDevice cameraDevice,
     CameraError cameraError
 )
 {
     cameraDevice.Close();
     cameraDevice = null;
 }
 public override void OnError(CameraDevice camera, CameraError error)
 {
     camera.Close();
     if (Fragment != null)
     {
         Fragment.mCameraDevice = null;
         Activity activity = Fragment.Activity;
         Fragment.mOpeningCamera = false;
         if (activity != null)
         {
             activity.Finish();
         }
     }
 }
Esempio n. 6
0
            public override void OnError(CameraDevice camera, Android.Hardware.Camera2.CameraError error)
            {
                Log.Error(TAG, "Received camera device error: " + error);
                lock (mCameraStateLock)
                {
                    mState = STATE_CLOSED;
                    mCameraOpenCloseLock.Release();
                    camera.Close();
                    mCameraDevice = null;
                }
                var activity = Activity;

                if (null != activity)
                {
                    activity.Finish();
                }
            }
            public override void OnError(CameraDevice camera, Android.Hardware.Camera2.CameraError error)
            {
                Log.Error(TAG, "Received camera device error: " + error);
                lock (_cameraStateLock)
                {
                    _state = STATE_CLOSED;
                    _cameraOpenCloseLock.Release();
                    camera.Close();
                    _cameraDevice = null;
                }

                /*
                 * var activity = Parent;
                 * if (null != activity)
                 * {
                 *  //TODO: clean up parent
                 *  //activity.Finish();
                 * }*/
            }
 public override void OnError(CameraDevice camera, CameraError error)
 {
     camera.Close();
     if (Fragment != null) {
         Fragment.mCameraDevice = null;
         Activity activity = Fragment.Activity;
         Fragment.mOpeningCamera = false;
         if (activity != null) {
             activity.Finish ();
         }
     }
 }
 public override void OnError(CameraDevice camera, Android.Hardware.Camera2.CameraError error)
 {
     throw new NotImplementedException();
 }
Esempio n. 10
0
 public override void OnError(CameraDevice camera, [GeneratedEnum] Android.Hardware.Camera2.CameraError error)
 {
     _owner.OnError("Camera Device error: " + error.ToString());
 }
Esempio n. 11
0
 public override void OnError(CameraDevice camera, Android.Hardware.Camera2.CameraError error)
 {
     //LogUtility.OutPutError(error.ToString());
     _cameraDevice.Close();
     _cameraDevice = null;
 }