types/collection.ql
| Function | Description |
|---|---|
| native fun getId() on collection | Gets the ID of the collection. This is an ID identifiable by the provider which owns this collection. |
| native fun getUrl() on collection | Gets the URL of the collection. |
| native fun getName() on collection | Gets the name of the collection. |
| native fun getCreator() on collection | Gets the creator of the collection. |
| native fun getTrackCount() on collection | Gets the number of tracks in the collection. |
| native fun anySongMatches(fn) on collection | Loops through all songs of the collection and checks if the condition is matched. |
| native fun containsArtist(artist) on collection | Checks if the collection contains any song with the given artist as the song's first artist. |
| native fun nextSong() on collection | Gets the next song as if it were being played. |
Gets the ID of the collection. This is an ID identifiable by the provider which owns this collection.
The ID of the collection
Gets the creator of the collection.
The creator of the collection
Gets the number of tracks in the collection.
The number of tracks
Loops through all songs of the collection and checks if the condition is matched.
fn
|
The function to check if the condition is matched. A single parameter |
If the condition is matched
Checks if the collection contains any song with the given artist as the song's first artist.
artist
|
The artist to check |
If the collection contains the artist
Gets the next song as if it were being played.