public CameraService(BarcodeScanner renderer, RebuyCameraSource cameraSource, CameraConfigurator configurator) { this.renderer = renderer; this.cameraSource = cameraSource; this.cameraConfigurator = configurator; this.autoFocus = new AutoFocusCallback(cameraSource.Camera); }
/// <summary> /// AutoFocusCallback 객체 생성 후, 카메라 객체에 설정합니다. /// </summary> private void SetAutoFocusCallback() { if (Camera == null) { this.Write("Camera instance is null."); return; } AutoFocusCallback = new AutoFocusCallback(Camera, Element.AutoFocusInterval); }
public static void AutoFocus(this RebuyCameraSource cameraSource, AutoFocusCallback callback) { cameraSource.Camera?.AutoFocus(callback); }