MicrophonePlatformInterface class abstract
The interface that implementations of microphone must implement.
Platform implementations should extend this class rather than implement it
because implements
does not consider newly added methods to be breaking
changes. Extending this class (using extends
) ensures that the subclass
will get the default implementation.
- Implementers
Constructors
Properties
Methods
-
create(
) → Future< int> - Creates an instance of a microphone recorder and returns its recorder ID.
-
dispose(
int recorderId) → Future< void> -
Disposes one microphone recorder that has the given
recorderId
. -
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
. -
stop(
int recorderId) → Future< String> -
Stops the recording of the recorder with
recorderId
and returns its recording URL. -
toBytes(
int recorderId) → Future< Uint8List> -
Returns the bytes of a stopped recording as a
Uint8List
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ MicrophonePlatformInterface
-
The default instance of the MicrophonePlatformInterface to use.
getter/setter pair