AudioWaveformsInterface class
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
-
checkPermission()
→ Future<bool>
-
platform call to check microphone permission
-
-
getDecibel()
→ Future<double?>
-
platform call to get decibel
-
getDuration(String key, int durationType)
→ Future<int?>
-
platform call to get duration max/current
-
getPlayerState(int finishModel)
→ PlayerState
-
-
initRecorder({String? path, required int encoder, required int outputFormat, required int sampleRate, int? bitRate})
→ Future<bool>
-
Platform call to initialise the recorder.
This method is only required for Android platform.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pause()
→ Future<bool?>
-
platform call to pause recording
-
pauseAllPlayers()
→ Future<bool>
-
-
pausePlayer(String key)
→ Future<bool>
-
platform call to pause player
-
preparePlayer({required String path, required String key, required int frequency, double? volume, bool overrideAudioSession = false})
→ Future<bool>
-
platform call to prepare player
-
record({required int audioFormat, required int sampleRate, int? bitRate, String? path, bool useLegacyNormalization = false, bool overrideAudioSession = true, int? linearPCMBitDepth, bool linearPCMIsBigEndian = false, bool linearPCMIsFloat = false})
→ Future<bool>
-
platform call to start recording
-
release(String key)
→ Future<bool>
-
platform call to release resource
-
removeMethodCallHandler()
→ void
-
-
resume()
→ Future<bool>
-
platform call to resume recording.
This method is only required for Android platform
-
seekTo(String key, int progress)
→ Future<bool>
-
platform call to seek audio at provided position
-
setMethodCallHandler()
→ Future<void>
-
-
setRate(double rate, String key)
→ Future<bool>
-
platform call to set rate
-
setReleaseMode(String key, FinishMode finishMode)
→ Future<void>
-
Sets the release mode.
-
setVolume(double volume, String key)
→ Future<bool>
-
platform call to set volume
-
startPlayer(String key)
→ Future<bool>
-
platform call to start player
-
stop()
→ Future<Map<String, dynamic>>
-
platform call to stop recording
-
stopAllPlayers()
→ Future<bool>
-
-
stopPlayer(String key)
→ Future<bool>
-
platform call to stop player
-
toString()
→ String
-
A string representation of this object.
inherited