MediaPlayer2 class

Constructors

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

Properties

client → DBusClient
finalinherited
destination String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
path → DBusObjectPath
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

callMethod(String? interface, String member, List<DBusValue> values) Future<DBusMethodResponse>
Invokes a method on this object.
inherited
callQuit() Future
Invokes org.mpris.MediaPlayer2.Quit()
callRaise() Future
Invokes org.mpris.MediaPlayer2.Raise()
getAllProperties(String interface) Future<Map<String, DBusValue>>
Gets the values of all the properties on this object.
inherited
getCanQuit() Future<bool>
Gets org.mpris.MediaPlayer2.CanQuit
getCanRaise() Future<bool>
Gets org.mpris.MediaPlayer2.CanRaise
getCanSetFullscreen() Future<bool>
Gets org.mpris.MediaPlayer2.CanSetFullscreen
getDesktopEntry() Future<String>
Gets org.mpris.MediaPlayer2.DesktopEntry
getFullscreen() Future<bool>
Gets org.mpris.MediaPlayer2.Fullscreen
getHasTrackList() Future<bool>
Gets org.mpris.MediaPlayer2.HasTrackList
getIdentity() Future<String>
Gets org.mpris.MediaPlayer2.Identity
getManagedObjects() Future<Map<DBusObjectPath, Map<String, Map<String, DBusValue>>>>
Gets all the sub-tree of objects, interfaces and properties of this object. Requires the remote object to implement the org.freedesktop.DBus.ObjectManager interface.
inherited
getProperty(String interface, String name) Future<DBusValue>
Gets a property on this object.
inherited
getSupportedMimeTypes() Future<List<String>>
Gets org.mpris.MediaPlayer2.SupportedMimeTypes
getSupportedUriSchemes() Future<List<String>>
Gets org.mpris.MediaPlayer2.SupportedUriSchemes
introspect() Future<DBusIntrospectNode>
Gets the introspection data for this object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFullscreen(bool value) Future<void>
Sets org.mpris.MediaPlayer2.Fullscreen
setProperty(String interface, String name, DBusValue value) Future<void>
Sets a property on this object.
inherited
subscribeObjectManagerSignals() Stream<DBusSignal>
Subscribes to signals using object manager. The stream will contain DBusPropertiesChangedSignal, DBusObjectManagerInterfacesAddedSignal, DBusObjectManagerInterfacesRemovedSignal and DBusSignal for all other signals on these objects. Requires the remote object to implement the org.freedesktop.DBus.ObjectManager interface.
inherited
subscribePropertiesChanged() Stream<DBusPropertiesChangedSignal>
Subscribes to property changes.
inherited
subscribeSignal(String interface, String member) Stream<DBusSignal>
Subscribes to signals interface.member from this object.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited