FlutterSoundPlayerPlatform class abstract

The interface that implementations of flutter_soundPlayer must implement.

Platform implementations should extend this class rather than implement it as url_launcher does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added FlutterSoundPlayerPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • FlutterSoundPlayerPlatform
Implementers

Constructors

FlutterSoundPlayerPlatform()
Constructs a UrlLauncherPlatform.

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

closePlayer(FlutterSoundPlayerCallback callback) Future<int>
closeSession(FlutterSoundPlayerCallback aSession) → void
feed(FlutterSoundPlayerCallback callback, {Uint8List? data}) Future<int>
findSession(FlutterSoundPlayerCallback aSession) int
getPlayerState(FlutterSoundPlayerCallback callback) Future<int>
getProgress(FlutterSoundPlayerCallback callback) Future<Map<String, Duration>>
getResourcePath(FlutterSoundPlayerCallback callback) Future<String>
getSession(int slotno) FlutterSoundPlayerCallback
isDecoderSupported(FlutterSoundPlayerCallback callback, {required Codec codec}) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nowPlaying(FlutterSoundPlayerCallback callback, {Duration? progress, Duration? duration, Map<String, dynamic>? track, bool? canPause, bool? canSkipForward, bool? canSkipBackward, bool? defaultPauseResume}) Future<int>
openPlayer(FlutterSoundPlayerCallback callback, {required Level logLevel, AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device, bool? withUI}) Future<int>
openSession(FlutterSoundPlayerCallback aSession) → void
pausePlayer(FlutterSoundPlayerCallback callback) Future<int>
resetPlugin(FlutterSoundPlayerCallback callback) Future<void>?
resumePlayer(FlutterSoundPlayerCallback callback) Future<int>
seekToPlayer(FlutterSoundPlayerCallback callback, {Duration? duration}) Future<int>
setAudioFocus(FlutterSoundPlayerCallback callback, {AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device}) Future<int>
setLogLevel(FlutterSoundPlayerCallback callback, Level loglevel) Future<void>?
setSpeed(FlutterSoundPlayerCallback callback, {required double speed}) Future<int>
setSubscriptionDuration(FlutterSoundPlayerCallback callback, {Duration? duration}) Future<int>
setUIProgressBar(FlutterSoundPlayerCallback callback, {Duration? duration, Duration? progress}) Future<int>
setVolume(FlutterSoundPlayerCallback callback, {double? volume}) Future<int>
startPlayer(FlutterSoundPlayerCallback callback, {Codec? codec, Uint8List? fromDataBuffer, String? fromURI, int? numChannels, int? sampleRate}) Future<int>
startPlayerFromMic(FlutterSoundPlayerCallback callback, {int? numChannels, int? sampleRate}) Future<int>
startPlayerFromTrack(FlutterSoundPlayerCallback callback, {Duration? progress, Duration? duration, Map<String, dynamic>? track, bool? canPause, bool? canSkipForward, bool? canSkipBackward, bool? defaultPauseResume, bool? removeUIWhenStopped}) Future<int>
stopPlayer(FlutterSoundPlayerCallback callback) Future<int>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

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