isAudioMuted method
- @SupportedPlatforms(platforms: [AndroidPlatform(apiName: 'WebViewCompat.isAudioMuted', apiUrl: 'https://developer.android.com/reference/androidx/webkit/WebViewCompat#isAudioMuted(android.webkit.WebView)', note: 'Available only if [WebViewFeature.MUTE_AUDIO] is supported.'), IOSPlatform(available: '15.0'), MacOSPlatform(available: '12.0')])
Returns whether this WebView is muted.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewCompat.isAudioMuted):
- Available only if WebViewFeature.MUTE_AUDIO is supported.
- iOS WKWebView 15.0+
- macOS WKWebView 12.0+
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebViewCompat.isAudioMuted',
apiUrl:
'https://developer.android.com/reference/androidx/webkit/WebViewCompat#isAudioMuted(android.webkit.WebView)',
note:
'Available only if [WebViewFeature.MUTE_AUDIO] is supported.',
),
IOSPlatform(available: '15.0'),
MacOSPlatform(available: '12.0'),
],
)
Future<bool> isAudioMuted() {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.isAudioMuted.name} is not implemented on the current platform',
);
}