CastKeepAlive class abstract interface

Keeps the app serving and driving a TV while it isn't in front: on Android a media playback foreground service with a notification and its controls, a partial wake lock and a Wi-Fi lock; on Windows a power request, so the PC doesn't sleep under the TV. Nothing elsewhere.

Implementers

Properties

actions → Stream<CastAction>
The notification's controls.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

hold(CastNotice notice) → Future<bool>
A TV plays: true once held, false when the system refused or this platform has nothing to hold.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → Future<void>
Casting ended.
toString() → String
A string representation of this object.
inherited
update(CastNotice notice) → Future<void>
What is shown while held, again: playing or paused, another video.

Operators

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

Static Properties

instance ↔ CastKeepAlive
This platform's keep-alive, made on first use: the plugin's own (MethodChannelCastKeepAlive) on Android, iOS and Windows, and UnsupportedCastKeepAlive on Linux and macOS, which have no native side. Set it to use another (a fake in tests).
getter/setter pair