MediaPlayer2Player class

Constructors

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

Properties

client → DBusClient
The client this object is accessed from.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the client providing this object.
finalinherited
path → DBusObjectPath
The path to the object.
finalinherited
propertiesChanged Stream<DBusPropertiesChangedSignal>
Stream of signals when the remote object indicates a property has changed.
latefinalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seeked Stream<MediaPlayer2PlayerSeeked>
Stream of org.mpris.MediaPlayer2.Player.Seeked signals.
latefinal

Methods

callMethod(String? interface, String name, Iterable<DBusValue> values, {DBusSignature? replySignature, bool noReplyExpected = false, bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<DBusMethodSuccessResponse>
Invokes a method on this object. Throws DBusMethodResponseException if the remote side returns an error.
inherited
callNext({bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<void>
Invokes org.mpris.MediaPlayer2.Player.Next()
callOpenUri(String Uri, {bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<void>
Invokes org.mpris.MediaPlayer2.Player.OpenUri()
callPause({bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<void>
Invokes org.mpris.MediaPlayer2.Player.Pause()
callPlay({bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<void>
Invokes org.mpris.MediaPlayer2.Player.Play()
callPlayPause({bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<void>
Invokes org.mpris.MediaPlayer2.Player.PlayPause()
callPrevious({bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<void>
Invokes org.mpris.MediaPlayer2.Player.Previous()
callSeek(int Offset, {bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<void>
Invokes org.mpris.MediaPlayer2.Player.Seek()
callSetPosition(String TrackId, int Position, {bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<void>
Invokes org.mpris.MediaPlayer2.Player.SetPosition()
callStop({bool noAutoStart = false, bool allowInteractiveAuthorization = false}) Future<void>
Invokes org.mpris.MediaPlayer2.Player.Stop()
getAllProperties(String interface) Future<Map<String, DBusValue>>
Gets the values of all the properties on this object.
inherited
getCanControl() Future<bool>
Gets org.mpris.MediaPlayer2.Player.CanControl
getCanGoNext() Future<bool>
Gets org.mpris.MediaPlayer2.Player.CanGoNext
getCanGoPrevious() Future<bool>
Gets org.mpris.MediaPlayer2.Player.CanGoPrevious
getCanPause() Future<bool>
Gets org.mpris.MediaPlayer2.Player.CanPause
getCanPlay() Future<bool>
Gets org.mpris.MediaPlayer2.Player.CanPlay
getCanSeek() Future<bool>
Gets org.mpris.MediaPlayer2.Player.CanSeek
getLoopStatus() Future<String>
Gets org.mpris.MediaPlayer2.Player.LoopStatus
getMaximumRate() Future<double>
Gets org.mpris.MediaPlayer2.Player.MaximumRate
getMetadata() Future<Map<String, DBusValue>>
Gets org.mpris.MediaPlayer2.Player.Metadata
getMinimumRate() Future<double>
Gets org.mpris.MediaPlayer2.Player.MinimumRate
getPlaybackStatus() Future<String>
Gets org.mpris.MediaPlayer2.Player.PlaybackStatus
getPosition() Future<int>
Gets org.mpris.MediaPlayer2.Player.Position
getProperty(String interface, String name, {DBusSignature? signature}) Future<DBusValue>
Gets a property on this object.
inherited
getRate() Future<double>
Gets org.mpris.MediaPlayer2.Player.Rate
getShuffle() Future<bool>
Gets org.mpris.MediaPlayer2.Player.Shuffle
getVolume() Future<double>
Gets org.mpris.MediaPlayer2.Player.Volume
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
setLoopStatus(String value) Future<void>
Sets org.mpris.MediaPlayer2.Player.LoopStatus
setProperty(String interface, String name, DBusValue value) Future<void>
Sets a property on this object.
inherited
setRate(double value) Future<void>
Sets org.mpris.MediaPlayer2.Player.Rate
setShuffle(bool value) Future<void>
Sets org.mpris.MediaPlayer2.Player.Shuffle
setVolume(double value) Future<void>
Sets org.mpris.MediaPlayer2.Player.Volume
toString() String
A string representation of this object.
inherited

Operators

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