MediaPlayer2TrackList constructor

MediaPlayer2TrackList(
  1. DBusClient client,
  2. String destination, {
  3. DBusObjectPath path = const DBusObjectPath.unchecked('/org/mpris/MediaPlayer2'),
})

Implementation

MediaPlayer2TrackList(DBusClient client, String destination,
    {DBusObjectPath path =
        const DBusObjectPath.unchecked('/org/mpris/MediaPlayer2')})
    : super(client, name: destination, path: path) {
  trackListReplaced = DBusRemoteObjectSignalStream(
          object: this,
          interface: 'org.mpris.MediaPlayer2.TrackList',
          name: 'TrackListReplaced',
          signature: DBusSignature('aoo'))
      .asBroadcastStream()
      .map((signal) => MediaPlayer2TrackListTrackListReplaced(signal));

  trackAdded = DBusRemoteObjectSignalStream(
          object: this,
          interface: 'org.mpris.MediaPlayer2.TrackList',
          name: 'TrackAdded',
          signature: DBusSignature('a{sv}o'))
      .asBroadcastStream()
      .map((signal) => MediaPlayer2TrackListTrackAdded(signal));

  trackRemoved = DBusRemoteObjectSignalStream(
          object: this,
          interface: 'org.mpris.MediaPlayer2.TrackList',
          name: 'TrackRemoved',
          signature: DBusSignature('o'))
      .asBroadcastStream()
      .map((signal) => MediaPlayer2TrackListTrackRemoved(signal));

  trackMetadataChanged = DBusRemoteObjectSignalStream(
          object: this,
          interface: 'org.mpris.MediaPlayer2.TrackList',
          name: 'TrackMetadataChanged',
          signature: DBusSignature('oa{sv}'))
      .asBroadcastStream()
      .map((signal) => MediaPlayer2TrackListTrackMetadataChanged(signal));
}