BackgroundAudioTask class Null safety

This class is deprecated. Use BaseAudioHandler instead.

Annotations

Constructors

BackgroundAudioTask()

Properties

fastForwardInterval Duration
Deprecated. Use AudioServiceConfig.fastForwardInterval from AudioService.config instead.
@Deprecated("Use [AudioServiceConfig.fastForwardInterval] from [AudioService.config] instead."), read-only
hashCode int
The hash code for this object.
read-only, inherited
rewindInterval Duration
Deprecated. Use AudioServiceConfig.rewindInterval from AudioService.config instead.
@Deprecated("Use [AudioServiceConfig.rewindInterval] from [AudioService.config] instead."), read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
onAddQueueItem(MediaItem mediaItem) Future<void>
Deprecated. Replaced by AudioHandler.addQueueItem.
@Deprecated("Use AudioHandler.addQueueItem instead.")
onAddQueueItemAt(MediaItem mediaItem, int index) Future<void>
Deprecated. Replaced by AudioHandler.insertQueueItem.
@Deprecated("Use AudioHandler.insertQueueItem instead.")
onClick(MediaButton? button) Future<void>
Deprecated. Replaced by AudioHandler.click.
@Deprecated("Use AudioHandler.click instead.")
onClose() Future<void>
Deprecated. Replaced by AudioHandler.onNotificationDeleted.
@Deprecated("Use AudioHandler.onNotificationDeleted instead.")
onCustomAction(String name, dynamic arguments) Future
Deprecated. Replaced by AudioHandler.customAction.
@Deprecated("Use AudioHandler.customAction instead.")
onFastForward() Future<void>
Deprecated. Replaced by AudioHandler.fastForward.
@Deprecated("Use AudioHandler.fastForward instead.")
onLoadChildren(String parentMediaId) Future<List<MediaItem>>
Deprecated. Replaced by AudioHandler.getChildren.
@Deprecated("Use AudioHandler.getChildren instead.")
onPause() Future<void>
Deprecated. Replaced by AudioHandler.pause.
@Deprecated("Use AudioHandler.pause instead.")
onPlay() Future<void>
Deprecated. Replaced by AudioHandler.play.
@Deprecated("Use AudioHandler.play instead.")
onPlayFromMediaId(String mediaId) Future<void>
Deprecated. Replaced by AudioHandler.playFromMediaId.
@Deprecated("Use AudioHandler.playFromMediaId instead.")
onPlayMediaItem(MediaItem mediaItem) Future<void>
Deprecated. Replaced by AudioHandler.playMediaItem.
@Deprecated("Use AudioHandler.playMediaItem instead.")
onPrepare() Future<void>
Deprecated. Replaced by AudioHandler.prepare.
@Deprecated("Use AudioHandler.prepare instead.")
onPrepareFromMediaId(String mediaId) Future<void>
Deprecated. Replaced by AudioHandler.prepareFromMediaId.
@Deprecated("Use AudioHandler.prepareFromMediaId instead.")
onRemoveQueueItem(MediaItem mediaItem) Future<void>
Deprecated. Replaced by AudioHandler.removeQueueItem.
@Deprecated("Use AudioHandler.removeQueueItem instead.")
onRewind() Future<void>
Deprecated. Replaced by AudioHandler.rewind.
@Deprecated("Use AudioHandler.rewind instead.")
onSeekBackward(bool begin) Future<void>
Deprecated. Replaced by AudioHandler.seekBackward.
@Deprecated("Use AudioHandler.seekBackward instead.")
onSeekForward(bool begin) Future<void>
Deprecated. Replaced by AudioHandler.seekForward.
@Deprecated("Use AudioHandler.seekForward instead.")
onSeekTo(Duration position) Future<void>
Deprecated. Replaced by AudioHandler.seek.
@Deprecated("Use AudioHandler.seek instead.")
onSetRating(Rating rating, Map<String, dynamic>? extras) Future<void>
Deprecated. Replaced by AudioHandler.setRating.
@Deprecated("Use AudioHandler.setRating instead.")
onSetRepeatMode(AudioServiceRepeatMode repeatMode) Future<void>
Deprecated. Replaced by AudioHandler.setRepeatMode.
@Deprecated("Use AudioHandler.setRepeatMode instead.")
onSetShuffleMode(AudioServiceShuffleMode shuffleMode) Future<void>
Deprecated. Replaced by AudioHandler.setShuffleMode.
@Deprecated("Use AudioHandler.setShuffleMode instead.")
onSetSpeed(double speed) Future<void>
Deprecated. Replaced by AudioHandler.setSpeed.
@Deprecated("Use AudioHandler.setSpeed instead.")
onSkipToNext() Future<void>
Deprecated. Replaced by AudioHandler.skipToNext.
@Deprecated("Use AudioHandler.skipToNext instead.")
onSkipToPrevious() Future<void>
Deprecated. Replaced by AudioHandler.skipToPrevious.
@Deprecated("Use AudioHandler.skipToPrevious instead.")
onSkipToQueueItem(String mediaId) Future<void>
Deprecated. Replaced by AudioHandler.skipToQueueItem.
@Deprecated("Use AudioHandler.skipToQueueItem instead.")
onStart(Map<String, dynamic>? params) Future<void>
Deprecated. The new AudioHandler API now automatically starts the service when your implementation enters the playing state. Parameters can be passed via AudioHandler.customAction.
@Deprecated("Use AudioService.init instead.")
onStop() Future<void>
Deprecated. Replaced by AudioHandler.stop.
@Deprecated("Use AudioHandler.stop instead."), @mustCallSuper
onTaskRemoved() Future<void>
Deprecated. Replaced by AudioHandler.onTaskRemoved.
@Deprecated("Use AudioHandler.onTaskRemoved instead.")
onUpdateMediaItem(MediaItem mediaItem) Future<void>
Deprecated. Replaced by AudioHandler.updateMediaItem.
@Deprecated("Use AudioHandler.updateMediaItem instead.")
onUpdateQueue(List<MediaItem> queue) Future<void>
Deprecated. Replaced by AudioHandler.updateQueue.
@Deprecated("Use AudioHandler.updateQueue instead.")
toString() String
A string representation of this object.
inherited

Operators

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