callGetTracksMetadata method

Future<List<Map<String, DBusValue>>> callGetTracksMetadata(
  1. List<String> TrackIds, {
  2. bool noAutoStart = false,
  3. bool allowInteractiveAuthorization = false,
})

Invokes org.mpris.MediaPlayer2.TrackList.GetTracksMetadata()

Implementation

Future<List<Map<String, DBusValue>>> callGetTracksMetadata(
    List<String> TrackIds,
    {bool noAutoStart = false,
    bool allowInteractiveAuthorization = false}) async {
  var result = await callMethod('org.mpris.MediaPlayer2.TrackList',
      'GetTracksMetadata', [DBusArray.objectPath(TrackIds)],
      replySignature: DBusSignature('aa{sv}'),
      noAutoStart: noAutoStart,
      allowInteractiveAuthorization: allowInteractiveAuthorization);
  return result.returnValues[0]
      .asArray()
      .map((child) => child.asStringVariantDict())
      .toList();
}