Service to display an alert message when recording has stopped.
StoppedRecording
Provides a method to show an alert indicating that the recording has stopped.
stoppedRecording
Options for displaying the alert:
state
reason
showAlert
Resolves when the alert message has been displayed.
const options = { state: 'stop', reason: 'User ended recording', showAlert: ({ message, duration, type }) => console.log(message)};stoppedRecordingService.stoppedRecording(options); Copy
const options = { state: 'stop', reason: 'User ended recording', showAlert: ({ message, duration, type }) => console.log(message)};stoppedRecordingService.stoppedRecording(options);
Displays an alert message when the recording has stopped.
The options for displaying the alert message.
A promise that resolves when the alert message is displayed.
Service to display an alert message when recording has stopped.
Name
StoppedRecording
Description
Provides a method to show an alert indicating that the recording has stopped.
Method
stoppedRecording
Param: options
Options for displaying the alert:
state
{string}: The state of the recording, typically 'stop'.reason
{string}: The reason for stopping the recording.showAlert
{Function}: Optional function to show alert messages.Returns
Resolves when the alert message has been displayed.
Example