MediaEvent class

Represents events received from the OS's background audio system (e.g. iOS lockscreen/control center, bluetooth controllers, etc) and from Android buttons in the notification.

Constructors

MediaEvent(MediaActionType type, {String customEventId, double seekToPositionSeconds, double skipIntervalSeconds})
const

Properties

customEventId String
Set for MediaActionType.custom.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
seekToPositionSeconds double
Set for MediaActionType.seekTo.
final
skipIntervalSeconds double
Set for MediaActionType.skipForward and MediaActionType.skipBackward.
final
type MediaActionType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited