J joop Active Member Licensed User Longtime User Feb 8, 2016 #1 Hi, I found this code on stack overflow for iPhone 5 5s https://stackoverflow.com/questions/12674917/iphone-5s-low-light-boost-mode B4X: 'https://stackoverflow.com/questions/12674917/iphone-5s-low-light-boost-mode If ([[self backFacingCamera] respondsToSelector:@selector(isLowLightBoostSupported)]) { If ([[self backFacingCamera] lockForConfiguration:nil]) { If ([self backFacingCamera].isLowLightBoostSupported) [self backFacingCamera].automaticallyEnablesLowLightBoostWhenAvailable = YES; [[self backFacingCamera] unlockForConfiguration]; } } I don't have the knowledge to write this in objective c maybe with some help I can make it work . ?
Hi, I found this code on stack overflow for iPhone 5 5s https://stackoverflow.com/questions/12674917/iphone-5s-low-light-boost-mode B4X: 'https://stackoverflow.com/questions/12674917/iphone-5s-low-light-boost-mode If ([[self backFacingCamera] respondsToSelector:@selector(isLowLightBoostSupported)]) { If ([[self backFacingCamera] lockForConfiguration:nil]) { If ([self backFacingCamera].isLowLightBoostSupported) [self backFacingCamera].automaticallyEnablesLowLightBoostWhenAvailable = YES; [[self backFacingCamera] unlockForConfiguration]; } } I don't have the knowledge to write this in objective c maybe with some help I can make it work . ?
Erel B4X founder Staff member Licensed User Longtime User Feb 9, 2016 #2 You can add this code to the CameraEx class: https://www.b4x.com/android/forum/t...control-the-camera-setting.49216/#post-306521 B4X: Public Sub EnableLowLightBoost If device.GetField("isLowLightBoostSupported").AsBoolean Then device.SetField("automaticallyEnablesLowLightBoostWhenAvailable", True) End If End Sub Make sure to call it after you call BeginConfiguration. Upvote 0
You can add this code to the CameraEx class: https://www.b4x.com/android/forum/t...control-the-camera-setting.49216/#post-306521 B4X: Public Sub EnableLowLightBoost If device.GetField("isLowLightBoostSupported").AsBoolean Then device.SetField("automaticallyEnablesLowLightBoostWhenAvailable", True) End If End Sub Make sure to call it after you call BeginConfiguration.
J joop Active Member Licensed User Longtime User Feb 9, 2016 #3 Thanks Erel I added the code. Upvote 0