setScreenScale method
- @SupportedPlatforms.new(platforms: [LinuxPlatform(apiName: 'wpe_screen_set_scale', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-platform-1.0/method.Screen.set_scale.html')])
- required double scale,
Sets the device pixel ratio (scale factor) for the screen where the WebView is displayed.
The scale factor represents the ratio between physical pixels and logical pixels. Setting this affects how content is rendered on HiDPI displays.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit (Official API - wpe_screen_set_scale)
Parameters - Officially Supported Platforms/Implementations:
scale: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
LinuxPlatform(
apiName: 'wpe_screen_set_scale',
apiUrl:
'https://wpewebkit.org/reference/stable/wpe-platform-1.0/method.Screen.set_scale.html',
),
],
)
Future<void> setScreenScale({required double scale}) {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.setScreenScale.name} is not implemented on the current platform',
);
}