cancelBackground method

Future<void> cancelBackground()

Actively cancel background PIP mode.

This method disables the automatic PIP mode that was enabled by enableWhenBackground. After calling this method, the app will no longer automatically enter PIP mode when going to background.

Note: This does not affect manually enabled PIP mode via enable.

Implementation

Future<void> cancelBackground() async {
  await private.cancelBackground();
}