configAndroidWebviewController static method
dynamic
configAndroidWebviewController(
- WebViewController webViewController
Configures the webview controller for Android
Implementation
static configAndroidWebviewController(WebViewController webViewController) {
// Enable debugging for Android
if (webViewController.platform is AndroidWebViewController) {
AndroidWebViewController.enableDebugging(true);
// Enable media playback without user gesture for Android
(webViewController.platform as AndroidWebViewController)
.setMediaPlaybackRequiresUserGesture(false);
}
}