setMuted method
- @SupportedPlatforms.new(platforms: [LinuxPlatform(apiName: 'webkit_web_view_set_is_muted', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.set_is_muted.html', available: '2.30')])
- required bool muted,
Sets the mute state of the webpage.
When muted is true, the webpage audio will be muted.
When muted is false, the webpage audio will be unmuted.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit 2.30+ (Official API - webkit_web_view_set_is_muted)
Parameters - Officially Supported Platforms/Implementations:
muted: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
LinuxPlatform(
apiName: 'webkit_web_view_set_is_muted',
apiUrl:
'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.set_is_muted.html',
available: '2.30',
),
],
)
Future<void> setMuted({required bool muted}) {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.setMuted.name} is not implemented on the current platform',
);
}