setBackgroundKeepAlive method

Future<void> setBackgroundKeepAlive(
  1. bool enabled
)

Opts the session into a background keep-alive (wake + Wi-Fi locks / prevent-sleep) for off-device playback such as casting. Defaults to a no-op so platforms (and any that do not override it) are safe.

Implementation

Future<void> setBackgroundKeepAlive(bool enabled) {
  return Future.value();
}