private void NativeSurface_SurfaceTextureDestroyed(object sender, TextureView.SurfaceTextureDestroyedEventArgs e) { _cameraAnalyzer.ShutdownCamera(); }
public void StopScanning() { CameraAnalyzer.ShutdownCamera(); //fix Android 7 bug: camera freezes because surfacedestroyed function isn't always called correct, the old surfaceview was still visible. this.Visibility = ViewStates.Gone; }