enterPipMode method
Future<bool>
enterPipMode({
- AspectRatio aspectRatio = (16, 9),
- bool autoEnter = false,
- 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;
}