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