private void NativeButtonClicked(object sender, ClickedEventArgs e) { if (overlayCamera != null) { overlayCamera.StopPreview(); overlayCamera.Dispose(); overlayCamera = null; win.Remove(overlayCameraView); } if (imageCamera == null) { ImageCamera(); } }
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"); }