DefaultAudioRecordButton

fun DefaultAudioRecordButton(state: RecordingState, recordingActions: AudioRecordingActions = AudioRecordingActions.None, holdToRecordThreshold: Long = HOLD_TO_RECORD_THRESHOLD, holdToRecordDismissTimeout: Long = HOLD_TO_RECORD_DISMISS_TIMEOUT, permissionRationaleDismissTimeout: Long = PERMISSION_RATIONALE_DISMISS_TIMEOUT)

Default implementation of the audio record button.

Parameters

state

The current recording state.

recordingActions

The actions to perform on the recording.

holdToRecordThreshold

The threshold to hold to record.

holdToRecordDismissTimeout

The timeout to dismiss the hold to record popup.

permissionRationaleDismissTimeout

The timeout to dismiss the permission rationale popup.