Playify class

Constructors

Playify()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusStream Stream<PlayifyStatus>
no setter

Methods

append(List<String> songIDs) Future<void>
Append songIDs to the queue.
endSeeking() Future<void>
Stop seeking.
getAllGenres() Future<List<String>>
Get all the genres in the Apple Music library.
getAllSongs({bool sort = false, int coverArtSize = 500}) Future<List<Artist>>
Fetch all songs in the Apple Music library.
getPlaybackTime() Future<double>
Get the playback time of the current song in the queue.
getPlaylists() Future<List<Playlist>?>
Get all the playlists.
getRepeatMode() Future<Repeat>
Get the repeat mode.
getShuffleMode() Future<Shuffle>
Get the shuffle mode.
getSongsByGenre({required String genre, int coverArtSize = 500}) Future<List<Song>>
Get all the songs in the Apple Music library with the genre. Specify a coverArtSize to fetch the current song with that coverArtSize.
getVolume() Future<double?>
Get the volume between 0 to 1.
incrementVolume(double amount) Future<void>
Increment the volume by amount.
isPlaying() Future<bool>
Check if there is a song currently playing.
next() Future<void>
Skip to the next song in the queue.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nowPlaying({int coverArtSize = 800}) Future<SongInformation?>
Retrieve information about the current playing song on the queue.
pause() Future<void>
Pause playing.
play() Future<void>
Play the most recent queue.
playItem({required String songID}) Future<void>
Play a single song by giving its songID.
prepend(List<String> songIDs) Future<void>
Prepend songIDs to the queue.
previous() Future<void>
Skip to the previous song in the queue.
seekBackward() Future<void>
Seek backward in the song currently playing in the queue. Must call endSeeking() or will not stop seeking.
seekForward() Future<void>
Seek forward in the song currently playing in the queue. Must call endSeeking() or will not stop seeking.
setPlaybackTime(double time) Future<void>
Set the playback time of the current song in the queue.
setQueue({required List<String> songIDs, required String startID, bool startPlaying = true}) Future<void>
Set the queue by giving the songIDs desired to be added to the queue. If startPlaying is false, the queue will not autoplay. If startID is provided, the queue will start from the song with the id startID.
setRepeatMode(Repeat mode) Future<void>
Set the repeat mode.
setShuffleMode(Shuffle mode) Future<void>
Set the shuffle mode.
setVolume(double value) Future<void>
Set the volume between 0 to 1.
skipToBeginning() Future<void>
Skip to the beginning of the current song.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

playerChannel → const MethodChannel