SpotifyEngine class
Search & Utility functions for searching Spotify.
- Inheritance
-
- Object
- SearchEngine
- SpotifyEngine
- Available extensions
Constructors
- SpotifyEngine()
- Creates a new SpotifyEngine.
Properties
Methods
-
constructSearchQuery(
Result result) → Future< String> -
Constructs a search query from any Result for ideal response from this Source.
inherited
-
getAlbumFromAlbumUrl(
String url) → Future< Album> -
Available on SpotifyEngine, provided by the AlbumSearch extension
Get album from a Spotify Album URL / URI. -
getPlaylistFromPlaylistUrl(
String url) → Future< Playlist> -
Available on SpotifyEngine, provided by the PlaylistSearch extension
Get the playlists from a Spotify Playlist URL / URI. -
getTrackFromTrackUrl(
String url) → Future< SpotifyResult> -
Available on SpotifyEngine, provided by the TrackSearch extension
Find a track from a Spotify Track URL / URI. -
getTracksFromAlbumUrl(
String url) → Future< List< SpotifyResult> > -
Available on SpotifyEngine, provided by the TrackSearch extension
Get the tracks from a Spotify Album URL / URI. -
getTracksFromPlaylistUrl(
String url) → Future< List< SpotifyResult> > -
Available on SpotifyEngine, provided by the TrackSearch extension
Get the tracks from a Spotify Playlist URL / URI. -
getUserPlaylists(
String url) → Future< List< Playlist> > -
Available on SpotifyEngine, provided by the PlaylistSearch 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 AlbumSearch extension
Search for albums on Spotify. -
searchForPlaylist(
String query, [int itemCount = 5]) → Future< List< Playlist> > -
Available on SpotifyEngine, provided by the PlaylistSearch extension
Search for playlists on Spotify. -
searchForTrack(
String query, [int itemCount = 5]) → Future< List< SpotifyResult> > -
Searches for tracks on Spotify.
override
-
searchForTrackFromResult(
Result result, [int itemCount = 5, int durationDelta = 15, double commonArtistThreshold = 0.5, bool albumMatchRequired = false]) → Future< List< SpotifyResult> > -
Searches for tracks from a Result. Usually more accurate than searchForTrack.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited