I am using the Embarcadero Demo program for the FMX TCameraComponent control which is targeted on an Android device (Samsung T700 Tablet).
I am using Embarcadero C++ Builder XE 10.1 Berlin, Update 2, Enterprise edition.
I have added an extra line of code in the button-click event handler which activates the camera but a compiler error is generated at his line of code as shown below.
How do I set the camera to auto-focus ?
void __fastcall TCameraComponentForm::btnStartCameraClick(TObject *Sender)
// Turn on the Camera
CameraComponent->Active = True;
CameraComponent->FocusMode = ContinuousAutoFocus;// <--- new line of code added here
tbControl->TabIndex = 1;
[bccaarm Warning] uMain.cpp(92): 6 enumeration values not handled in switch: 'FinishedLaunching', 'BecameActive', 'WillBecomeForeground'...