Пример #1
0
 private void NativeSurface_SurfaceTextureDestroyed(object sender,
                                                    TextureView.SurfaceTextureDestroyedEventArgs e)
 {
     _cameraAnalyzer.ShutdownCamera();
 }
Пример #2
0
 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;
 }