DVNowPlaying class final
Who is on the now-playing surface.
Constructors
- DVNowPlaying([DVNowPlayingBackend backend = const DVNoNowPlayingBackend()])
Properties
Methods
-
claim(
Object owner, DVMediaSession session, DVNowPlayingState state, {required void onCommand(DVMediaCommand command)}) → Future< void> -
Puts
owneron the surface withsession; 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
owneroff 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
stateifowneris on the surface and anything changed.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited