DVNowPlaying class final

Who is on the now-playing surface.

Constructors

DVNowPlaying([DVNowPlayingBackend backend = const DVNoNowPlayingBackend()])

Properties

hashCode → int
The hash code for this object.
no setterinherited
owner → Object?
The player on the surface, or null.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

claim(Object owner, DVMediaSession session, DVNowPlayingState state, {required void onCommand(DVMediaCommand command)}) → Future<void>
Puts owner on the surface with session; the previous owner, if any, stops receiving commands.
dispose() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release(Object owner) → Future<void>
Takes owner off the surface. A no-op for a player that is not on it, so one that lost the surface to another cannot clear that one.
toString() → String
A string representation of this object.
inherited
update(Object owner, DVNowPlayingState state) → Future<void>
Publishes state if owner is on the surface and anything changed.

Operators

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