Audio Recording Controller
interface AudioRecordingController
Controller given when entering audio recording mode.
Types
Link copied to clipboard
interface AudioRecordingListener
Listener for audio recording events.
Functions
Link copied to clipboard
abstract fun addAudioRecordingListener(@NonNull listener: AudioRecordingController.AudioRecordingListener)
Registers a AudioRecordingListener to get notified when audio recording state changes.
Link copied to clipboard
Discards recorded audio data.
Link copied to clipboard
Leaves recording mode and saves the recorded data.
Link copied to clipboard
Returns the audio mode manager from this controller.
Link copied to clipboard
Returns current recording position in milliseconds.
Link copied to clipboard
Returns maximum recording time in milliseconds.
Link copied to clipboard
Returns flowable emitting recorded samples usable for audio visualizer.
Link copied to clipboard
abstract fun removeAudioRecordingListener(@NonNull listener: AudioRecordingController.AudioRecordingListener)
Removes a previously registered AudioRecordingListener.