openUrlRequest method
Future<void>
openUrlRequest({
- required URLRequest urlRequest,
- @Deprecated('Use settings instead') InAppBrowserClassOptions? options,
- InAppBrowserClassSettings? settings,
inherited
Opens the PlatformInAppBrowser instance with an urlRequest.
urlRequest: The urlRequest to load.
options: Options for the PlatformInAppBrowser.
settings: Settings for the PlatformInAppBrowser.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Linux WPE WebKit
Parameters - Officially Supported Platforms/Implementations:
urlRequest: all platformssettings: all platforms
Use the PlatformInAppBrowser.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<void> openUrlRequest({
required URLRequest urlRequest,
@Deprecated('Use settings instead') InAppBrowserClassOptions? options,
InAppBrowserClassSettings? settings,
}) {
this.platform.eventHandler = this;
return platform.openUrlRequest(
urlRequest: urlRequest,
options: options,
settings: settings,
);
}