MiniProgramMicrophoneProvider class abstract interface

A trusted provider owns permission UI, foreground capture, and native media.

Implemented types

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 recordingId) → Future<bool>
loadPreview(MiniProgramMediaPreviewRequest request) → Future<MiniProgramMediaPreviewResult>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record(MiniProgramMicrophoneRequest request, {required VoidCallback onStarted}) → Future<MiniProgramMicrophoneResult>
Completes when stopped or a native limit is reached. onStarted runs only once capture begins, after permission is granted.
releaseMedia(MiniProgramMediaReleaseRequest request) → Future<bool>
inherited
stop(String recordingId, {bool background = false}) → Future<bool>
toString() → String
A string representation of this object.
inherited

Operators

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