-
Notifications
You must be signed in to change notification settings - Fork 31
Advanced Camera APIs
These APIs let the user play around with the system camera of the device. Users can manipulate the exposure values, set zoom factor, use the camera flash, and much more.
This API lets the user enable, disable or auto-enable the camera torch of the phone. This API only works with the rear camera of the device.
This API lets the user enable, disable or auto-enable the camera flash of the phone and will be triggered at the time of takePhoto()
API.
This lets the user zoom in or out depending upon the device's capability.
This API will give the min, max range as well as the current value of the camera exposure duration. The default value until it is set is 0.
This API will give the min, max range as well as the current value of the camera exposure ISO. The default value until it is set is 0.
This API will give the min, max range as well as the current value of the camera target bias. The default value until it is set is 0.
This API lets the user to focus the camera at a particular point.
This API takes in exposure duration and exposure ISO value to custom adjust the exposure. Exposure duration determines the amount of time your film is exposed to light when taking a photograph. ISO is your camera's sensitivity to light as it pertains to either film or a digital sensor. A lower ISO value means less sensitivity to light, while a higher ISO means more sensitivity.
This API takes in Target bias to auto-adjust the exposure. Target bias is set to make a scene brighter, move the camera, and exposure will keep adjusting to keep that level of enhanced brightness.
This API lets you click the photo of the local view. The result is obtained as Data in
fun onPhotoCaptured(imageData: ByteArray?)
- First the user needs to be on a call, whether 1-1 or a meeting.
- The user needs to enable the local camera view to use camera APIs.
- Call the desired camera API.