UrlLauncherPlatform class abstract
The interface that implementations of url_launcher must implement.
Platform implementations should extend this class rather than implement it as url_launcher
does not consider newly added methods to be breaking changes. Extending this class
(using extends) ensures that the subclass will get the default implementation, while
platform implementations that implements this interface will be broken by newly added
UrlLauncherPlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- UrlLauncherPlatform
- Implementers
Constructors
- UrlLauncherPlatform()
- Constructs a UrlLauncherPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- linkDelegate → LinkDelegate?
-
The delegate used by the Link widget to build itself.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canLaunch(
String url) → Future< bool> -
Returns
trueif this platform is able to launchurl. -
closeWebView(
) → Future< void> - Closes the web view, if one was opened earlier by launchUrl.
-
launch(
String url, {required bool useSafariVC, required bool useWebView, required bool enableJavaScript, required bool enableDomStorage, required bool universalLinksOnly, required Map< String, String> headers, String? webOnlyWindowName}) → Future<bool> -
Passes
urlto the underlying platform for handling. -
launchUrl(
String url, LaunchOptions options) → Future< bool> -
Passes
urlto the underlying platform for handling. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
supportsCloseForMode(
PreferredLaunchMode mode) → Future< bool> - Returns true if the given launch mode can be closed with closeWebView.
-
supportsMode(
PreferredLaunchMode mode) → Future< bool> - Returns true if the given launch mode is supported by the current implementation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ UrlLauncherPlatform
-
The default instance of UrlLauncherPlatform to use.
getter/setter pair