callGetPlaylists method

Future<List<DBusStruct>> callGetPlaylists(
  1. int Index,
  2. int MaxCount,
  3. String Order,
  4. bool ReverseOrder, {
  5. bool noAutoStart = false,
  6. bool allowInteractiveAuthorization = false,
})

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();
}