Package org.mpris
Class TrackListImpl.AddTrack
java.lang.Object
org.mpris.TrackListImpl.AddTrack
- Enclosing class:
TrackListImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.freedesktop.dbus.DBusPathThe identifier of the track after which the new item should be inserted.getUri()The uri of the item to add.booleanWhether the newly inserted track should be considered as the current track.
-
Constructor Details
-
AddTrack
- 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.SupportedMimeTypesafterTrack- 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
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.
-