enterPipMode method

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

Request entering PIP mode

Implementation

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