mediaType property
The media type for the contents of the web view.
When the value of this property is null
, the web view derives the current media type from the CSS media property of its content.
If you assign a value other than null
to this property, the web view uses the value you provide instead.
The default value of this property is null
.
Officially Supported Platforms/Implementations:
- iOS 14.0+ (Official API - WKWebView.mediaType)
- MacOS 11.0+ (Official API - WKWebView.mediaType)
Implementation
String? mediaType;