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
-
getAllSongs(
{bool sort: false, int coverArtSize: 50} ) → 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 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.
-
next(
) → Future< bool> - Skip to the next song in the queue.
-
nowPlaying(
) → Future< GeneralInfo> - 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.
-
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
-
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')