Package org.mpris

Class TrackListImpl.AddTrack

java.lang.Object
org.mpris.TrackListImpl.AddTrack
Enclosing class:
TrackListImpl

public static class TrackListImpl.AddTrack extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    AddTrack(String uri, org.freedesktop.dbus.DBusPath afterTrack, boolean setAsCurrent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.freedesktop.dbus.DBusPath
    The identifier of the track after which the new item should be inserted.
    The uri of the item to add.
    boolean
    Whether the newly inserted track should be considered as the current track.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AddTrack

      public AddTrack(String uri, org.freedesktop.dbus.DBusPath afterTrack, boolean setAsCurrent)
      Parameters:
      uri - The uri of the item to add. Its uri scheme should be an element of the org.mpris.MediaPlayer2.SupportedUriSchemes property and the mime-type should match one of the elements of the org.mpris.MediaPlayer2.SupportedMimeTypes
      afterTrack - The identifier of the track after which the new item should be inserted. The path /org/mpris/MediaPlayer2/TrackList/NoTrack indicates that the track should be inserted at the start of the track list.
      setAsCurrent - Whether the newly inserted track should be considered as the current track. Setting this to true has the same effect as calling GoTo afterwards.
  • Method Details

    • getUri

      public String getUri()
      The uri of the item to add. Its uri scheme should be an element of the org.mpris.MediaPlayer2.SupportedUriSchemes property and the mime-type should match one of the elements of the org.mpris.MediaPlayer2.SupportedMimeTypes
    • getAfterTrack

      public org.freedesktop.dbus.DBusPath getAfterTrack()
      The identifier of the track after which the new item should be inserted. The path /org/mpris/MediaPlayer2/TrackList/NoTrack indicates that the track should be inserted at the start of the track list.
    • isSetAsCurrent

      public boolean isSetAsCurrent()
      Whether the newly inserted track should be considered as the current track. Setting this to true has the same effect as calling GoTo afterwards.