示例#1
0
 private void NativeButtonClicked(object sender, ClickedEventArgs e)
 {
     if (overlayCamera != null)
     {
         overlayCamera.StopPreview();
         overlayCamera.Dispose();
         overlayCamera = null;
         win.Remove(overlayCameraView);
     }
     if (imageCamera == null)
     {
         ImageCamera();
     }
 }
示例#2
0
        public void Deactivate()
        {
            win.KeyEvent -= Win_KeyEvent;

            if (camera != null)
            {
                if (camera.State == Tizen.Multimedia.CameraState.Preview)
                {
                    camera.StopPreview();
                }

                camera.Dispose();
            }

            videoView.Dispose();

            tlog.Fatal(tag, $"Deactivate()! cameraView dispsed");
        }