toggleRecording

@RequiresApi(value = 26)
@RequiresPermission(value = "android.permission.RECORD_AUDIO")
suspend fun CameraState.toggleRecording(fileOutputOptions: FileOutputOptions, audioConfig: AudioConfig = AudioConfig.create(true)): Uri?

Transform toggle recording file to suspend function


@RequiresApi(value = 24)
@RequiresPermission(value = "android.permission.RECORD_AUDIO")
suspend fun CameraState.toggleRecording(mediaStoreOutputOptions: MediaStoreOutputOptions, audioConfig: AudioConfig = AudioConfig.create(true)): Uri?

Transform toggle recording content values options to suspend function


@RequiresApi(value = 26)
@RequiresPermission(value = "android.permission.RECORD_AUDIO")
suspend fun CameraState.toggleRecording(fileDescriptorOutputOptions: FileDescriptorOutputOptions, audioConfig: AudioConfig = AudioConfig.create(true)): Uri?

Transform toggle recording output files options to suspend function