enterPipMode method

Future<bool> enterPipMode({
  1. dynamic aspectRatio = const [16, 9],
  2. dynamic autoEnter = false,
  3. dynamic seamlessResize = false,
})

Request entering PIP mode

Implementation

Future<bool> enterPipMode({
  aspectRatio = const [16, 9],
  autoEnter = false,
  seamlessResize = false,
}) async {
  Map params = {
    'aspectRatio': aspectRatio,
    'autoEnter': autoEnter,
    'seamlessResize': seamlessResize,
  };
  final bool? enteredSuccessfully =
      await _channel.invokeMethod('enterPipMode', params);
  return enteredSuccessfully ?? false;
}