public void StartPreview(ISurfaceHolder holder)
        {
            try {
                if (!opened)
                {
                    OpenCamera();
                    return;
                }

                if (!previewActive)
                {
                    cameraSource?.StartPreview(holder);

                    if (cameraSource.AutoFocusModeEnabled())
                    {
                        cameraSource.AutoFocus(autoFocus);
                    }

                    previewActive = true;
                }

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