Code example for Camera

Methods: stopPreview

0
    if (autoFocusManager != null) {
      autoFocusManager.stop();
      autoFocusManager = null;
    } 
    if (camera != null && previewing) {
      camera.stopPreview();
      previewCallback.setHandler(null, 0);
      previewing = false;
    } 
  } 
 
  /** 
   * Convenience method for {@link com.google.zxing.client.android.CaptureActivity} 
   */ 
  public synchronized void setTorch(boolean newSetting) {
    if (camera != null) {
      if (autoFocusManager != null) {
        autoFocusManager.stop();
      } 
      configManager.setTorch(camera, newSetting);
Contextual code suggestions in your IDE  Get Codota for Java