Record class
Audio recorder API
- Implemented types
Constructors
- Record()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> -
Dispose the recorder
override
-
getAmplitude(
) → Future< Amplitude> -
Gets current average & max amplitudes (dBFS)
Always returns zeros on unsupported platforms
override
-
hasPermission(
) → Future< bool> -
Checks and requests for audio record permission.
override
-
isEncoderSupported(
AudioEncoder encoder) → Future< bool> -
Checks if the given encoder is supported on the current platform.
override
-
isPaused(
) → Future< bool> -
Checks if recording session is paused.
override
-
isRecording(
) → Future< bool> -
Checks if there's valid recording session.
So if session is paused, this method will still return
true
.override -
listInputDevices(
) → Future< List< InputDevice> > -
Lists capture/input devices available on the platform.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAmplitudeChanged(
Duration interval) → Stream< Amplitude> - Listen to amplitude.
-
onStateChanged(
) → Stream< RecordState> -
Listen to recorder states RecordState.
override
-
pause(
) → Future< void> -
Pauses recording session.
override
-
resume(
) → Future< void> -
Resumes recording session after pause.
override
-
start(
{String? path, AudioEncoder encoder = AudioEncoder.aacLc, int bitRate = 128000, int samplingRate = 44100, int numChannels = 2, InputDevice? device}) → Future< void> -
Starts new recording session.
override
-
stop(
) → Future< String?> -
Stops recording session and release internal recorder resource.
Returns the output path.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited