UrlLauncherIOS class
An implementation of UrlLauncherPlatform
for iOS.
- Inheritance
-
- Object
- PlatformInterface
- UrlLauncherIOS
Constructors
- UrlLauncherIOS({@visibleForTesting UrlLauncherApi? api})
- Creates a new plugin implementation instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- linkDelegate → LinkDelegate?
-
The delegate used by the Link widget to build itself.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canLaunch(
String url) → Future< bool> -
Returns
true
if 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
url
to the underlying platform for handling. -
launchUrl(
String url, LaunchOptions options) → Future< bool> -
Passes
url
to 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 Methods
-
registerWith(
) → void -
Registers this class as the default instance of
UrlLauncherPlatform
.