RecordPlatform class abstract

Record platform interface

Inheritance
  • Object
  • PlatformInterface
  • RecordPlatform
Implemented types

Constructors

RecordPlatform.new()
Constructs a RecordPlatformInterface.

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

cancel(String recorderId) Future<void>
Stops the recording if needed and remove current file.
inherited
create(String recorderId) Future<void>
Create a recorder
inherited
dispose(String recorderId) Future<void>
Dispose the recorder
inherited
getAmplitude(String recorderId) Future<Amplitude>
Gets current average & max amplitudes (dBFS) Always returns zeros on unsupported platforms
inherited
getIos(String recorderId) RecordIos?
iOS platform specific methods.
override
hasPermission(String recorderId) Future<bool>
Checks and requests for audio record permission.
inherited
isEncoderSupported(String recorderId, AudioEncoder encoder) Future<bool>
Checks if the given encoder is supported on the current platform.
inherited
isPaused(String recorderId) Future<bool>
Checks if recording session is paused.
inherited
isRecording(String recorderId) Future<bool>
Checks if there's valid recording session. So if session is paused, this method will still return true.
inherited
listInputDevices(String recorderId) Future<List<InputDevice>>
Lists capture/input devices available on the platform.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onStateChanged(String recorderId) Stream<RecordState>
Listen to recorder states RecordState.
inherited
pause(String recorderId) Future<void>
Pauses recording session.
inherited
resume(String recorderId) Future<void>
Resumes recording session after pause.
inherited
start(String recorderId, RecordConfig config, {required String path}) Future<void>
Starts new recording session.
inherited
startStream(String recorderId, RecordConfig config) Future<Stream<Uint8List>>
Same as start with output stream instead of a path.
inherited
stop(String recorderId) Future<String?>
Stops recording session and release internal recorder resource.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance RecordPlatform
The default instance of RecordPlatform to use.
getter/setter pair