enable method

Future<PiPStatus> enable()

Actively enable PIP mode.

This method enables Picture-in-Picture mode for the current video stream. The user can then minimize the app and continue watching the video in a floating window.

Returns the current PiPStatus indicating whether PIP was successfully enabled.

Note: This method only works on supported platforms (iOS 15.0+ and Android 8.0+).

Implementation

Future<PiPStatus> enable() async {
  return await private.enable();
}