CameraControl

Functions

Link copied to clipboard

Captures the highest resolution image that the local camera supports. This does not depend on publisher's resolution. Once the onImageCapture method returns, the image in the ImageCaptureModel will be closed and invalid for access. Do not store it, the resources need to be released.

Link copied to clipboard
fun captureImageAtMaxSupportedResolution(savePath: File, callback: (isSuccess: Boolean) -> Unit)

Captures the highest resolution image that the local camera supports. This does not depend on publisher's resolution.

Link copied to clipboard

Gets the manual focus range

Link copied to clipboard

Gets maximum zoom value in for current camera session. If not supported ZOOM_DEFAULT_VALUE is returned

Link copied to clipboard

Gets minimum zoom value in for current camera session. If not supported ZOOM_DEFAULT_VALUE is returned

Link copied to clipboard

Checks if the camera flash is enabled.

Link copied to clipboard

Checks if the camera has a flash device.

Link copied to clipboard

Checks if manual focus is supported by the current facing cameraID

Link copied to clipboard

Checks if any focus mode is supported by the current facing cameraID

Link copied to clipboard

Checks if digital zoom is supported by the current facing cameraID

Link copied to clipboard
fun resetZoom()

Resets the current zoom

Link copied to clipboard
fun setFlash(enable: Boolean)

Enables or disable camera flash.

Link copied to clipboard
fun setManualFocus(range: Float)

Sets the manual focus, will not zoom if its outside the zoom bounds The camera should support manual focus

Link copied to clipboard
fun setTapToFocusAt(viewX: Float, viewY: Float, viewWidth: Int, viewHeight: Int, scalingType: RendererCommon.ScalingType = ScalingType.SCALE_ASPECT_FILL)

Tap to focus, before calling this check isTapToFocusSupported

Link copied to clipboard
fun setZoom(zoomValue: Float)

Sets the current zoom, will not zoom if its outside the zoom bounds

Properties

Link copied to clipboard
Link copied to clipboard
var captureFormat: CameraEnumerationAndroid.CaptureFormat? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Readers used as buffers for camera still shots