enhanced_url_launcher library

Classes

WebViewConfiguration
Additional configuration options for LaunchMode.inAppWebView.

Enums

LaunchMode
The desired mode to launch a URL.

Functions

canLaunch(String urlString) Future<bool>
Checks whether the specified URL can be handled by some app installed on the device.
canLaunchUrl(Uri url) Future<bool>
Checks whether the specified URL can be handled by some app installed on the device.
closeInAppWebView() Future<void>
Closes the current in-app web view, if one was previously opened by launchUrl.
closeWebView() Future<void>
Closes the current WebView, if one was previously opened via a call to launch.
downloadBlob(List<int> bytes, {String? types, String? endings, String? fileName}) → void
For web: downloads the given bytes as blob
getNewWindowLocation(int width, int height) Point<num>
For web: get the centered location for a new window
isLastWindowClosed() bool?
For web: Checks if the last opened window was closed
launch(String urlString, {bool? forceSafariVC, bool forceWebView = false, bool enableJavaScript = false, bool enableDomStorage = false, bool universalLinksOnly = false, Map<String, String> headers = const <String, String>{}, Brightness? statusBarBrightness, String? webOnlyWindowName}) Future<bool>
Parses the specified URL string and delegates handling of it to the underlying platform.
launchUrl(Uri url, {LaunchMode mode = LaunchMode.platformDefault, WebViewConfiguration webViewConfiguration = const WebViewConfiguration(), String? webOnlyWindowName, String? webOnlyOptions}) Future<bool>
Passes url to the underlying platform for handling.