AudioService class Null safety

Constructors

AudioService()
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
onAudioRecordStatus Stream<RecordInfo>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

cancelRecord() Future<NIMResult<bool>>
getAmplitude() Future<NIMResult<int>>
isAudioRecording() Future<NIMResult<bool>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
startRecord(AudioOutputFormat recordType, int maxDuration) Future<NIMResult<bool>>
开始录制,支持参数设置录音格式和最大录音长度,如果不传,则默认为AAC和120s
stopRecord() Future<NIMResult<bool>>
toString() String
A string representation of this object.
inherited

Operators

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