setAutoPipMode method
Future<bool>
setAutoPipMode({
- AspectRatio aspectRatio = (16, 9),
- bool seamlessResize = false,
- bool autoEnter = true,
Request setting automatic PIP mode. Android 12 (Android S, API level 31) or newer required.
Implementation
Future<bool> setAutoPipMode({
AspectRatio aspectRatio = const (16, 9),
bool seamlessResize = false,
bool autoEnter = true,
}) async {
Map params = {
'aspectRatio': aspectRatio.asList,
'autoEnter': autoEnter,
'seamlessResize': seamlessResize,
};
final bool? setSuccessfully =
await _channel.invokeMethod('setAutoPipMode', params);
return setSuccessfully ?? false;
}