Ejemplo 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;
            }
        }
Ejemplo n.º 3
0
 public override void OnError(CameraDevice camera, CameraError error)
 {
     camera.Close();
     if (Activity != null)
     {
         Activity.cameraDevice  = null;
         Activity.openingCamera = false;
     }
 }
Ejemplo 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();
         }
     }
 }
Ejemplo 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();
                }
            }
Ejemplo n.º 7
0
            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();
 }
Ejemplo n.º 10
0
 public override void OnError(CameraDevice camera, [GeneratedEnum] Android.Hardware.Camera2.CameraError error)
 {
     _owner.OnError("Camera Device error: " + error.ToString());
 }
Ejemplo n.º 11
0
 public override void OnError(CameraDevice camera, Android.Hardware.Camera2.CameraError error)
 {
     //LogUtility.OutPutError(error.ToString());
     _cameraDevice.Close();
     _cameraDevice = null;
 }