SpotifyEngine class

Search & Utility functions for searching Spotify.

Implemented types
Available extensions

Constructors

SpotifyEngine.new()
Creates a new SpotifyEngine.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Source
The provider source this engine is for.
final

Methods

constructSearchQuery(LazyResult result) Future<String>
Constructs a search query from any LazyResult for ideal response from this Source.
override
getAlbumFromAlbumUrl(String url) Future<Album>

Available on SpotifyEngine, provided by the AlbumSearchUtil extension

Get album from a Spotify Album URL / URI.
getPlaylistFromPlaylistUrl(String url) Future<Playlist>

Available on SpotifyEngine, provided by the PlaylistSearchUtil extension

Get the playlists from a Spotify Playlist URL / URI.
getTrackFromTrackUrl(String url) Future<SpotifyResult>

Available on SpotifyEngine, provided by the TrackSearchUtils extension

Find a track from a Spotify Track URL / URI.
getTracksFromAlbumUrl(String url) Future<List<SpotifyResult>>

Available on SpotifyEngine, provided by the TrackSearchUtils extension

Get the tracks from a Spotify Album URL / URI.
getTracksFromPlaylistUrl(String url) Future<List<SpotifyResult>>

Available on SpotifyEngine, provided by the TrackSearchUtils extension

Get the tracks from a Spotify Playlist URL / URI.
getUserPlaylists(String url) Future<List<Playlist>>

Available on SpotifyEngine, provided by the PlaylistSearchUtil extension

Get the playlists of a user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchForAlbum(String query, [int itemCount = 5]) Future<List<Album>>

Available on SpotifyEngine, provided by the AlbumSearchUtil extension

Search for albums on Spotify.
searchForPlaylist(String query, [int itemCount = 5]) Future<List<Playlist>>

Available on SpotifyEngine, provided by the PlaylistSearchUtil extension

Search for playlists on Spotify.
searchForTrack(String query, [int itemCount = 5]) Stream<LazySpotifyResult>
Searches for tracks on Spotify.
override
searchForTrackFromResult(LazyResult result, [int itemCount = 5, int durationDelta = 15, double commonArtistThreshold = 0.5, bool albumMatchRequired = false]) Stream<LazySpotifyResult>
Searches for tracks from a LazyResult. Usually more accurate than searchForTrack.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

extractId(String url) String
Extract the URI from a Spotify URL.