public void HaltPreview()
        {
            try {
                autoFocus.Enabled = false;
                cameraSource?.StopPreview();
                previewActive = false;

                renderer.OnPreviewDeactivated();
            } catch (Exception ex) {
                this.Debug("Unable to halt preview.");
                this.Debug(ex.ToString());
            }
        }