setPictureInPictureEnabled method

  1. @override
Future<void> setPictureInPictureEnabled({
  1. required bool enable,
})
override

Implementation

@override
Future<void> setPictureInPictureEnabled({required bool enable}) async {
  if (enable) {
    return methodChannel.invokeMethod(
      'enablePictureInPictureMode',
    );
  }

  return methodChannel.invokeMethod(
    'disablePictureInPictureMode',
  );
}