enterPipMode method
Future<bool>
enterPipMode({
- dynamic aspectRatio = const [16, 9],
- dynamic autoEnter = false,
- 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;
}