setBackgroundKeepAlive method

  1. @override
Future<void> setBackgroundKeepAlive(
  1. bool enabled
)
override

Opts the session into a background keep-alive for off-device playback such as casting. Defaults to a no-op on platforms where not implemented.

Implementation

@override
Future<void> setBackgroundKeepAlive(bool enabled) async {
  await methodChannel.invokeMethod('setBackgroundKeepAlive', enabled);
}