Launches the recording process based on various conditions and updates the UI accordingly.
The options for launching the recording.
Function to update the visibility of the recording modal.
Indicates if the recording modal is currently visible.
Optional function to show an alert message.
Indicates if the recording launch should be stopped.
Indicates if the recording can be launched.
Indicates if audio recording is supported.
Indicates if video recording is supported.
Function to update the recording capability.
Function to update the cleared-to-record status.
Indicates if the recording has started.
Indicates if the recording is paused.
Indicates if the local UI mode is active.
Will show an alert if:
const options: LaunchRecordingOptions = { updateIsRecordingModalVisible: (visible) => { /* update visibility logic */ }, isRecordingModalVisible: false, showAlert: (alert) => { /* show alert logic */ }, stopLaunchRecord: false, canLaunchRecord: true, recordingAudioSupport: true, recordingVideoSupport: true, updateCanRecord: (canRecord) => { /* update record capability */ }, updateClearedToRecord: (cleared) => { /* update cleared status */ }, recordStarted: false, recordPaused: false, localUIMode: false,};launchRecording(options); Copy
const options: LaunchRecordingOptions = { updateIsRecordingModalVisible: (visible) => { /* update visibility logic */ }, isRecordingModalVisible: false, showAlert: (alert) => { /* show alert logic */ }, stopLaunchRecord: false, canLaunchRecord: true, recordingAudioSupport: true, recordingVideoSupport: true, updateCanRecord: (canRecord) => { /* update record capability */ }, updateClearedToRecord: (cleared) => { /* update cleared status */ }, recordStarted: false, recordPaused: false, localUIMode: false,};launchRecording(options);
Launches the recording process based on various conditions and updates the UI accordingly.
Param: options
The options for launching the recording.
Param: options.updateIsRecordingModalVisible
Function to update the visibility of the recording modal.
Param: options.isRecordingModalVisible
Indicates if the recording modal is currently visible.
Param: options.showAlert
Optional function to show an alert message.
Param: options.stopLaunchRecord
Indicates if the recording launch should be stopped.
Param: options.canLaunchRecord
Indicates if the recording can be launched.
Param: options.recordingAudioSupport
Indicates if audio recording is supported.
Param: options.recordingVideoSupport
Indicates if video recording is supported.
Param: options.updateCanRecord
Function to update the recording capability.
Param: options.updateClearedToRecord
Function to update the cleared-to-record status.
Param: options.recordStarted
Indicates if the recording has started.
Param: options.recordPaused
Indicates if the recording is paused.
Param: options.localUIMode
Indicates if the local UI mode is active.
Returns
Throws
Will show an alert if:
Example