Record class

Record class bridging to native recorders given by platform SDKs.

The plugin is aware of activity lifecycle. So exiting, your app or activity will stop the recording (but won't delete the output file).

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

hasPermission() Future<bool>
Checks and requests for audio record permission.
isPaused() Future<bool>
Checks if recording session is paused.
isRecording() Future<bool>
Checks if there's valid recording session. So if session is paused, this method will still return true.
pause() Future<void>
Pauses recording session.
resume() Future<void>
Resumes recording session after pause.
start({required String path, AudioEncoder encoder = AudioEncoder.AAC, int bitRate = 128000, double samplingRate = 44100.0}) Future<void>
Starts new recording session.
stop() Future<void>
Stops recording session and release internal recorder resource.