# Camera1Source

@RequiresApi(value = 21)
class Camera1Source(context: Context) : VideoSource

Created by pedro on 11/1/24.

## Constructors

Camera1Source
Link copied to clipboard
constructor(context: Context)

## Properties

created
Link copied to clipboard
var created: Boolean
fps
Link copied to clipboard
var fps: Int
height
Link copied to clipboard
var height: Int
rotation
Link copied to clipboard
var rotation: Int
surfaceTexture
Link copied to clipboard
var surfaceTexture: SurfaceTexture?
width
Link copied to clipboard
var width: Int

## Functions

disableAutoFocus
Link copied to clipboard
fun disableAutoFocus(): Boolean
disableFaceDetection
Link copied to clipboard
fun disableFaceDetection()
disableLantern
Link copied to clipboard
fun disableLantern()
disableVideoStabilization
Link copied to clipboard
fun disableVideoStabilization()
enableAutoFocus
Link copied to clipboard
fun enableAutoFocus(): Boolean
enableAutoWhiteBalance
Link copied to clipboard
fun enableAutoWhiteBalance(mode: String): Boolean
enableFaceDetection
Link copied to clipboard
fun enableFaceDetection(callback: FaceDetectorCallback): Boolean
enableLantern
Link copied to clipboard
fun enableLantern()
enableVideoStabilization
Link copied to clipboard
fun enableVideoStabilization(): Boolean
getAutoWhiteBalanceModesAvailable
Link copied to clipboard
fun getAutoWhiteBalanceModesAvailable(): List<String?>?
getCameraFacing
Link copied to clipboard
fun getCameraFacing(): CameraHelper.Facing
getCameraResolutions
Link copied to clipboard
fun getCameraResolutions(facing: CameraHelper.Facing): List<Size>
getExposure
Link copied to clipboard
fun getExposure(): Int
getOrientationConfig
Link copied to clipboard
open fun getOrientationConfig(): OrientationConfig
getWhiteBalance
Link copied to clipboard
fun getWhiteBalance(): String?
getZoom
Link copied to clipboard
fun getZoom(): Int
getZoomRange
Link copied to clipboard
fun getZoomRange(): Range<Int>
init
Link copied to clipboard
fun init(width: Int, height: Int, fps: Int, rotation: Int): Boolean
isAutoFocusEnabled
Link copied to clipboard
fun isAutoFocusEnabled(): Boolean
isFaceDetectionEnabled
Link copied to clipboard
fun isFaceDetectionEnabled(): Boolean
isLanternEnabled
Link copied to clipboard
fun isLanternEnabled(): Boolean
isRunning
Link copied to clipboard
open override fun isRunning(): Boolean
isVideoStabilizationEnabled
Link copied to clipboard
fun isVideoStabilizationEnabled(): Boolean
openCameraId
Link copied to clipboard
fun openCameraId(id: Int)
release
Link copied to clipboard
open override fun release()
setCameraCallback
Link copied to clipboard
fun setCameraCallback(callbacks: CameraCallbacks?)
setExposure
Link copied to clipboard
fun setExposure(level: Int)
setZoom
Link copied to clipboard
fun setZoom(level: Int)
@JvmOverloads
fun setZoom(event: MotionEvent, delta: Int = 1)
start
Link copied to clipboard
open override fun start(surfaceTexture: SurfaceTexture)
stop
Link copied to clipboard
open override fun stop()
switchCamera
Link copied to clipboard
fun switchCamera()
tapToFocus
Link copied to clipboard
fun tapToFocus(view: View, event: MotionEvent): Boolean