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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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