JustAudioBackground class

Provides the init method to initialise just_audio for background playback.

Constructors

JustAudioBackground()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

init({bool androidResumeOnClick = true, String? androidNotificationChannelId, String androidNotificationChannelName = 'Notifications', String? androidNotificationChannelDescription, Color? notificationColor, String androidNotificationIcon = 'mipmap/ic_launcher', bool androidShowNotificationBadge = false, bool androidNotificationClickStartsActivity = true, bool androidNotificationOngoing = false, bool androidStopForegroundOnPause = true, int? artDownscaleWidth, int? artDownscaleHeight, Duration fastForwardInterval = const Duration(seconds: 10), Duration rewindInterval = const Duration(seconds: 10), bool preloadArtwork = false, Map<String, dynamic>? androidBrowsableRootExtras}) Future<void>
Initialise just_audio for background playback. This should be called from your app's main method. e.g.: