iOS Question iphone exposure lock

joop

Active Member
Licensed User
Longtime User
Hi I tried to lock exposure with this:

B4X:
Public Sub LockExposure
  If device.GetField("isExposureModeLockedSupported").AsBoolean Then
     device.SetField("AVCaptureExposureModeLocked", True)
   End If
   Log(device.GetField("Exposure lock Supported").AsBoolean)
End Sub

This is info from stack overflow :
B4X:
if ([device isExposureModeSupported:AVCaptureExposureModeLocked]) {
                device.exposureMode = AVCaptureExposureModeLocked;
                NSLog(@"Exposure locked");
            }

I know I dont have the right values in the getfield functions but I cant
figure it out.

http://stackoverflow.com/questions/...xposure-focus-lock-it-doesnt-stay-locked?rq=1
 
Top