AudioRecordingController

Controller given when entering audio recording mode.

Types

Link copied to clipboard
Listener for audio recording events.

Functions

Link copied to clipboard
Registers a AudioRecordingListener to get notified when audio recording state changes.
Link copied to clipboard
abstract fun discardRecording()
Discards recorded audio data.
Link copied to clipboard
abstract fun exitAudioRecordingMode(enterPlaybackModeAfterSaving: Boolean)
Leaves recording mode and saves the recorded data.
Link copied to clipboard
Returns the audio mode manager from this controller.
Link copied to clipboard
@IntRange(from = 0)
abstract fun getCurrentPosition(): Int
Returns current recording position in milliseconds.
Link copied to clipboard
@IntRange(from = 0)
abstract fun getRecordingTimeLimit(): Int
Returns maximum recording time in milliseconds.
Link copied to clipboard
abstract fun getVisualizerFlowable(): Flowable<ByteBuffer>
Returns flowable emitting recorded samples usable for audio visualizer.
Link copied to clipboard
abstract fun isReady(): Boolean
Checks whether the controller is ready for recording.
Link copied to clipboard
abstract fun isResumed(): Boolean
Checks whether the audio is currently recording.
Link copied to clipboard
abstract fun pause()
Pauses recording.
Link copied to clipboard
Link copied to clipboard
abstract fun resume()
Resumes recording.
Link copied to clipboard
open fun toggle()
Toggles recording.