react-native-vision-cameraType aliases
RecordingFinishedReason
type RecordingFinishedReason = "stopped" | "max-duration-reached" | "max-file-size-reached"Describes why a Recorder's recording finished, and was delivered
to the onRecordingFinished callback passed to
Recorder.startRecording(...).
In all cases, the resulting video file is fully written and usable - this type only communicates why the recording ended, so the caller can react accordingly (e.g. show a "max length reached" toast, or chain a follow-up recording).
'stopped': The recording was stopped via aRecorder.stopRecording()call.'max-duration-reached': The recording automatically stopped because it reached the configuredRecorderSettings.maxDurationlimit.'max-file-size-reached': The recording automatically stopped because it reached the configuredRecorderSettings.maxFileSizelimit.