MethodChannelAudioPlus class
An implementation of AudioPlusPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- AudioPlusPlatform
- MethodChannelAudioPlus
Constructors
Properties
-
currentPosition
→ Future<
double?> -
Retrieves the current playback position of the audio.
no setteroverride
-
duration
→ Future<
double?> -
Retrieves the total duration of the audio.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isPlaying
→ Future<
bool?> -
Checks whether audio is currently playing.
no setteroverride
- 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
-
increaseVolume(
double volume) → Future< void> -
Increases the volume of the audio.
override
-
isLooping(
bool isLooping) → Future< void> -
Sets the replay mode of the audio.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future< void> -
Pauses the currently playing audio.
override
-
play(
String filePath) → Future< void> -
Initiates audio playback for the specified file.
override
-
resume(
) → Future< void> -
Resumes the paused audio playback.
override
-
seekTo(
int position) → Future< void> -
Seeks to the specified position in the audio playback.
override
-
stop(
) → Future< void> -
Stops the audio playback.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited