MethodChannelAudioTone class
An implementation of AudioTonePlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- AudioTonePlatform
- MethodChannelAudioTone
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
-
getMorseCodePlayDuration(
String morseCode) → Future< double> -
override
-
init(
AudioSampleRate sampleRate) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
play(
) → Future< void> -
播放
Play
override
-
playMorseCode(
String morseCode) → Future< int> -
override
-
setDashDuration(
int dotsTimes) → Future< void> -
override
-
setDotDashIntervalDuration(
int dotsTimes) → Future< void> -
override
-
setFrequency(
AudioFrequency frequency) → Future< void> -
override
-
setLetterIntervalDuration(
int dotsTimes) → Future< void> -
设置字母之间的间隔时长(点的倍数)
Set Duration of a Letter Interval (Dot counts)
default value 3 dots, range 1-5 dots / 默认3个点,范围1-5个点
override
-
setSpeed(
int wpm) → Future< void> -
override
-
setVolume(
double volume) → Future< void> -
override
-
setWordsIntervalDuration(
int dotsTimes) → Future< void> -
设置单词间间隔时长(点的倍数)
Set Duration of a Words Interval (Dot counts)
default value 7 dots, range 3-20 dots / 默认7个点,范围3-20个点
override
-
stop(
) → Future< void> -
停止
Stop
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited