callGetPlaylists method
Invokes org.mpris.MediaPlayer2.Playlists.GetPlaylists()
Implementation
Future<List<DBusStruct>> callGetPlaylists(
int Index, int MaxCount, String Order, bool ReverseOrder,
{bool noAutoStart = false,
bool allowInteractiveAuthorization = false}) async {
var result = await callMethod(
'org.mpris.MediaPlayer2.Playlists',
'GetPlaylists',
[
DBusUint32(Index),
DBusUint32(MaxCount),
DBusString(Order),
DBusBoolean(ReverseOrder)
],
replySignature: DBusSignature('a(oss)'),
noAutoStart: noAutoStart,
allowInteractiveAuthorization: allowInteractiveAuthorization);
return result.returnValues[0]
.asArray()
.map((child) => child.asStruct())
.toList();
}