Playify class

Constructors

Playify()

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

endSeeking() → Future<bool>
Stop seeking.
getAllSongs({bool sort: false, int coverArtSize: 500}) → Future<List<Artist>>
Fetch all songs in the Apple Music library. This method may take up significant time due to the amount of songs available on the phone. Make sure to display a waiting animation while this is fetching. All cover art for each album is fetched when using this function. Due the amount of songs, the app may crash if the device does not have enough memory. In this case, the size of the cover art should be reduced.
getPlaybackTime() → Future<double>
Get the playback time of the current song in the queue.
next() → Future<bool>
Skip to the next song in the queue.
nowPlaying() → Future<SongInfo>
Retrieve information about the current playing song on the queue.
pause() → Future<bool>
Pause playing.
play() → Future<bool>
Play the most recent queue.
previous() → Future<bool>
Skip to the previous song in the queue.
seekBackward() → Future<bool>
Seek backward in the song currently playing in the queue. Must call endSeeking() or will not stop seeking.
seekForward() → Future<bool>
Seek forward in the song currently playing in the queue. Must call endSeeking() or will not stop seeking.
setPlaybackTime(double time) → Future<bool>
Set the playback time of the current song in the queue.
setQueue({List<String> songIDs, int startIndex: 0}) → Future<bool>
Set the queue by giving the songIDs desired to be added to the queue. Does not require the play function to be called after setting the queue. It will autoplay
setRepeatMode(Repeat mode) → Future<bool>
Set the repeat mode.
setShuffleMode(Shuffle mode) → Future<bool>
Set the shuffle mode.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Constants

playerChannel → const MethodChannel
const MethodChannel('com.kaya.playify/playify')