AudioPlusPlatform class abstract

AudioPlusPlatform abstract class provides an interface for platform-specific implementations of audio playback operations.

Inheritance
  • Object
  • PlatformInterface
  • AudioPlusPlatform
Implementers

Constructors

AudioPlusPlatform()
Constructs a AudioPlusPlatform.

Properties

currentPosition Future<double?>
Retrieves the current playback position of the audio.
no setter
duration Future<double?>
Retrieves the total duration of the audio.
no setter
hashCode int
The hash code for this object.
no setterinherited
isPlaying Future<bool?>
Checks whether audio is currently playing.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

increaseVolume(double volume) Future<void>
Increases the volume of the audio.
isLooping(bool isLooping) Future<void>
Sets the replay mode of the audio.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
Pauses the currently playing audio.
play(String filePath) Future<void>
Initiates audio playback for the specified file.
resume() Future<void>
Resumes the paused audio playback.
seekTo(int position) Future<void>
Seeks to the specified position in the audio playback.
stop() Future<void>
Stops the audio playback.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance AudioPlusPlatform
The default instance of AudioPlusPlatform to use.
getter/setter pair