setQueue method
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
Implementation
Future<bool> setQueue({List<String> songIDs, int startIndex = 0}) async {
if (Platform.isIOS) {
var result = await playerChannel
.invokeMethod('setQueue', <String, dynamic>{"songIDs": songIDs, "startIndex": startIndex});
return result;
} else {
throw PlatformException(
code: "Device is not iOS!",
message:
"Currently only iOS is supported. Feel free to contribute to Playify to help support Android.");
}
}