OrgMprisMediaPlayer2 class
Constructors
-
OrgMprisMediaPlayer2({DBusObjectPath path = const DBusObjectPath.unchecked('/'), required String identity})
-
Creates a new object to expose on
path
.
Methods
-
doNext()
→ Future<DBusMethodResponse>
-
Implementation of org.mpris.MediaPlayer2.Player.Next()
-
doOpenUri(String uri)
→ Future<DBusMethodResponse>
-
Implementation of org.mpris.MediaPlayer2.Player.OpenUri()
-
doPause()
→ Future<DBusMethodResponse>
-
Implementation of org.mpris.MediaPlayer2.Player.Pause()
-
doPlay()
→ Future<DBusMethodResponse>
-
Implementation of org.mpris.MediaPlayer2.Player.Play()
-
doPlayPause()
→ Future<DBusMethodResponse>
-
Implementation of org.mpris.MediaPlayer2.Player.PlayPause()
-
doPrevious()
→ Future<DBusMethodResponse>
-
Implementation of org.mpris.MediaPlayer2.Player.Previous()
-
doQuit()
→ Future<DBusMethodResponse>
-
Implementation of org.mpris.MediaPlayer2.Quit()
-
doRaise()
→ Future<DBusMethodResponse>
-
Implementation of org.mpris.MediaPlayer2.Raise()
-
doSeek(int offset)
→ Future<DBusMethodResponse>
-
Implementation of org.mpris.MediaPlayer2.Player.Seek()
-
doSetPosition(String trackId, int position)
→ Future<DBusMethodResponse>
-
Implementation of org.mpris.MediaPlayer2.Player.SetPosition()
-
doStop()
→ Future<DBusMethodResponse>
-
Implementation of org.mpris.MediaPlayer2.Player.Stop()
-
emitInterfacesAdded(DBusObjectPath path, Map<String, Map<String, DBusValue>> interfacesAndProperties)
→ Future<void>
-
Emits org.freedesktop.DBus.ObjectManager.InterfacesAdded on this object.
path
is the path to the object that has been added or changed.
interfacesAndProperties
is the interfaces added to the object at path
and the properties this object has.
inherited
-
emitInterfacesRemoved(DBusObjectPath path, Iterable<String> interfaces)
→ Future<void>
-
Emits org.freedesktop.DBus.ObjectManager.InterfacesRemoved on this object.
path
is the path to the object is being removed or changed.
interfaces
is the names of the interfaces being removed from the object at path
.
inherited
-
emitPropertiesChanged(String interface, {Map<String, DBusValue> changedProperties = const {}, List<String> invalidatedProperties = const []})
→ Future<void>
-
Emits org.freedesktop.DBus.Properties.PropertiesChanged on this object.
inherited
-
emitSeeked(Duration position)
→ Future<void>
-
Emits signal org.mpris.MediaPlayer2.Player.Seeked
-
emitSignal(String interface, String name, [Iterable<DBusValue> values = const []])
→ Future<void>
-
Emits a signal on this object.
inherited
-
getAllProperties(String interface)
→ Future<DBusMethodResponse>
-
Called when all properties are requested on this object. On success, return
DBusGetAllPropertiesResponse
.
-
getCanControl()
→ DBusBoolean
-
Gets value of property org.mpris.MediaPlayer2.Player.CanControl
-
getCanGoNext()
→ DBusBoolean
-
Gets value of property org.mpris.MediaPlayer2.Player.CanGoNext
-
getCanGoPrevious()
→ DBusBoolean
-
Gets value of property org.mpris.MediaPlayer2.Player.CanGoPrevious
-
getCanPause()
→ DBusBoolean
-
Gets value of property org.mpris.MediaPlayer2.Player.CanPause
-
getCanPlay()
→ DBusBoolean
-
Gets value of property org.mpris.MediaPlayer2.Player.CanPlay
-
getCanQuit()
→ DBusBoolean
-
Gets value of property org.mpris.MediaPlayer2.CanQuit
-
getCanRaise()
→ DBusBoolean
-
Gets value of property org.mpris.MediaPlayer2.CanRaise
-
getCanSeek()
→ DBusBoolean
-
Gets value of property org.mpris.MediaPlayer2.Player.CanSeek
-
getCanSetFullscreen()
→ DBusBoolean
-
Gets value of property org.mpris.MediaPlayer2.CanSetFullscreen
-
getDesktopEntry()
→ DBusString
-
Gets value of property org.mpris.MediaPlayer2.DesktopEntry
-
getFullscreen()
→ DBusBoolean
-
Gets value of property org.mpris.MediaPlayer2.Fullscreen
-
getHasTrackList()
→ DBusBoolean
-
Gets value of property org.mpris.MediaPlayer2.HasTrackList
-
getIdentity()
→ DBusString
-
Gets value of property org.mpris.MediaPlayer2.Identity
-
getLoopStatus()
→ DBusString
-
Gets value of property org.mpris.MediaPlayer2.Player.LoopStatus
-
getMaximumRate()
→ DBusDouble
-
Gets value of property org.mpris.MediaPlayer2.Player.MaximumRate
-
getMetadata()
→ DBusValue
-
Gets value of property org.mpris.MediaPlayer2.Player.Metadata
-
getMinimumRate()
→ DBusDouble
-
Gets value of property org.mpris.MediaPlayer2.Player.MinimumRate
-
getPosition()
→ DBusInt64
-
Gets value of property org.mpris.MediaPlayer2.Player.Position
-
getProperty(String interface, String name)
→ Future<DBusMethodResponse>
-
Called when a property is requested on this object. On success, return
DBusGetPropertyResponse
.
-
getRate()
→ DBusDouble
-
Gets value of property org.mpris.MediaPlayer2.Player.Rate
-
getSupportedMimeTypes()
→ DBusArray
-
Gets value of property org.mpris.MediaPlayer2.SupportedMimeTypes
-
getSupportedUriSchemes()
→ DBusArray
-
Gets value of property org.mpris.MediaPlayer2.SupportedUriSchemes
-
getVolume()
→ DBusDouble
-
Gets value of property org.mpris.MediaPlayer2.Player.Volume
-
handleMethodCall(DBusMethodCall methodCall)
→ Future<DBusMethodResponse>
-
Called when a method call is received on this object.
-
introspect()
→ List<DBusIntrospectInterface>
-
Called to get introspection information about this object.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
setFullscreen(bool value)
→ Future<DBusMethodResponse>
-
Sets property org.mpris.MediaPlayer2.Fullscreen
-
setLoopStatus(String value)
→ Future<DBusMethodResponse>
-
Sets property org.mpris.MediaPlayer2.Player.LoopStatus
-
setProperty(String interface, String name, DBusValue value)
→ Future<DBusMethodResponse>
-
Called when a property is set on this object. On success, return
DBusMethodSuccessResponse
.
-
setRate(double value)
→ Future<DBusMethodResponse>
-
Sets property org.mpris.MediaPlayer2.Player.Rate
-
setVolume(double value)
→ Future<DBusMethodResponse>
-
Sets property org.mpris.MediaPlayer2.Player.Volume
-
toString()
→ String
-
A string representation of this object.
inherited