MethodChannelFlutterAiui class
An implementation of FlutterAiuiPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- FlutterAiuiPlatform
- MethodChannelFlutterAiui
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
AiuiEventListener listener) → void -
添加监听器
override
-
destroyAgent(
) → Future< void> -
销毁AIUI代理
override
-
initAgent(
AiuiParams params, {AiuiEventListener? listener}) → Future< void> -
创建AIUI代理
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseRecordAudio(
[IatAudioParams? params]) → Future< void> -
暂停录音
override
-
pauseTTS(
) → Future< void> -
暂停语音合成
override
-
removeListener(
) → void -
删除监听器
override
-
resumeRecordAudio(
[IatAudioParams? params]) → Future< void> -
继续录音
override
-
resumeTTS(
[TtsParams? params]) → Future< void> -
继续语音合成
override
-
setParams(
AiuiParams params) → Future< void> -
设置参数
override
-
startRecordAudio(
[IatAudioParams? params]) → Future< void> -
开始录音
override
-
startTTS(
String text, [TtsParams? params]) → Future< void> -
语音合成
override
-
stopRecordAudio(
[IatAudioParams? params]) → Future< void> -
结束录音
override
-
stopTTS(
) → Future< void> -
停止语音合成
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeText(
String text, [IatTextParams? params]) → Future< void> -
文本语义
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited