toggleRecording

@RequiresApi(value = 26)
@RequiresPermission(value = "android.permission.RECORD_AUDIO")
fun toggleRecording(fileDescriptorOutputOptions: FileDescriptorOutputOptions, audioConfig: AudioConfig = AudioConfig.create(true), onResult: (VideoCaptureResult) -> Unit)
@RequiresApi(value = 24)
@RequiresPermission(value = "android.permission.RECORD_AUDIO")
fun toggleRecording(mediaStoreOutputOptions: MediaStoreOutputOptions, audioConfig: AudioConfig = AudioConfig.create(true), onResult: (VideoCaptureResult) -> Unit)
@RequiresApi(value = 24)
@RequiresPermission(value = "android.permission.RECORD_AUDIO")
fun toggleRecording(fileOutputOptions: FileOutputOptions, audioConfig: AudioConfig = AudioConfig.create(true), onResult: (VideoCaptureResult) -> Unit)

Toggle recording camera.