callAddTrack method

Future<void> callAddTrack(
  1. String Uri,
  2. String AfterTrack,
  3. bool SetAsCurrent, {
  4. bool noAutoStart = false,
  5. bool allowInteractiveAuthorization = false,
})

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

Implementation

Future<void> callAddTrack(String Uri, String AfterTrack, bool SetAsCurrent,
    {bool noAutoStart = false,
    bool allowInteractiveAuthorization = false}) async {
  await callMethod(
      'org.mpris.MediaPlayer2.TrackList',
      'AddTrack',
      [
        DBusString(Uri),
        DBusObjectPath(AfterTrack),
        DBusBoolean(SetAsCurrent)
      ],
      replySignature: DBusSignature(''),
      noAutoStart: noAutoStart,
      allowInteractiveAuthorization: allowInteractiveAuthorization);
}