UrlLauncher class

Constructors

UrlLauncher()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canLaunch(Uri url) Future<bool>
closeWebView() Future<void>
Closes the current in-app web view, if one was previously opened by launchUrl. This works only if supportsCloseForLaunchMode returns true for the mode that was used by launchUrl.
isInstalledApp({String? packageName, String? appId}) Future<bool>
是否安装某个app
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAppStore({String? packageName, String? marketPackageName, bool androidUseIntent = true, String? appId, LaunchMode mode = LaunchMode.platformDefault, WebViewConfiguration webViewConfiguration = const WebViewConfiguration(), String? webOnlyWindowName}) Future<bool>
openPhone(String phone) Future<bool>
拨打电话 Make a phone call
openSMS(String phone) Future<bool>
发送短信 Send a text message
openUri(Uri uri, {LaunchMode mode = LaunchMode.platformDefault, WebViewConfiguration webViewConfiguration = const WebViewConfiguration(), String? webOnlyWindowName}) Future<bool>
打开连接 Open the uri
openUrl(String url, {LaunchMode mode = LaunchMode.platformDefault, WebViewConfiguration webViewConfiguration = const WebViewConfiguration(), String? webOnlyWindowName}) Future<bool>
打开连接 Open the url
supports(LaunchMode mode) Future<bool>
Returns true if mode is supported by the current platform implementation. Calling launchUrl with an unsupported mode will fall back to a supported mode, so calling this method is only necessary for cases where the caller needs to know which mode will be used.
supportsClose(LaunchMode mode) Future<bool>
Returns true if closeInAppWebView is supported for mode in the current platform implementation. If this returns false, closeInAppWebView will not work when launching URLs with mode.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited