MicrophoneWeb class

The web implementation of the MicrophonePlatformInterface.

This class implements the microphone plugin functionality for web.

Inheritance
  • Object
  • MicrophonePlatformInterface
  • MicrophoneWeb

Constructors

MicrophoneWeb()

Properties

hashCode int
The hash code for this object.
no setterinherited
isMock bool
Only mock implementations should set this to true.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create() Future<int>
Creates an instance of a microphone recorder and returns its recorder ID.
override
dispose(int recorderId) Future<void>
Disposes one microphone recorder that has the given recorderId.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start(int recorderId) Future<void>
Starts the recording of the microphone recorder with the given recorderId.
override
stop(int recorderId) Future<String>
Stops the recording of the recorder with recorderId and returns its recording URL.
override
toBytes(int recorderId) Future<Uint8List>
Returns the bytes of a stopped recording as a Uint8List.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

registerWith(Registrar registrar) → void
Registers MicrophoneWeb as the default instance of the MicrophonePlatformInterface.