feat: Activate Torch Mode on Android (#1932)
This commit is contained in:
parent
4cbe8324d5
commit
9d71990570
@ -575,8 +575,9 @@ class CameraSession(
|
|||||||
val videoStabilizationMode = videoStabilizationMode
|
val videoStabilizationMode = videoStabilizationMode
|
||||||
val lowLightBoost = lowLightBoost
|
val lowLightBoost = lowLightBoost
|
||||||
val hdr = hdr
|
val hdr = hdr
|
||||||
|
val enableTorch = enableTorch
|
||||||
|
|
||||||
val repeatingRequest = getPreviewCaptureRequest(fps, videoStabilizationMode, lowLightBoost, hdr)
|
val repeatingRequest = getPreviewCaptureRequest(fps, videoStabilizationMode, lowLightBoost, hdr, enableTorch)
|
||||||
Log.d(TAG, "Setting Repeating Request..")
|
Log.d(TAG, "Setting Repeating Request..")
|
||||||
session.setRepeatingRequest(repeatingRequest, null, null)
|
session.setRepeatingRequest(repeatingRequest, null, null)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user