open method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform()])
- WebUri? url,
- @SupportedPlatforms.new(platforms: [AndroidPlatform()]) Map<
String, String> ? headers, - @SupportedPlatforms.new(platforms: [AndroidPlatform()]) List<
WebUri> ? otherLikelyURLs, - @SupportedPlatforms.new(platforms: [AndroidPlatform()]) WebUri? referrer,
- @Deprecated('Use settings instead') ChromeSafariBrowserClassOptions? options,
- ChromeSafariBrowserSettings? settings,
Opens the PlatformChromeSafariBrowser instance with an url.
url - The url to load. On iOS, the url is required and must use the http or https scheme.
headers - whitelisted cross-origin request headers.
It is possible to attach non-whitelisted headers to cross-origin requests, when the server and client are related using a
digital asset link.
otherLikelyURLs - Other likely destinations, sorted in decreasing likelihood order.
referrer - referrer header.
options - Deprecated. Use settings instead.
settings - Settings for the PlatformChromeSafariBrowser.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs
- iOS SFSafariViewController
Parameters - Officially Supported Platforms/Implementations:
url: all platformsheaders:- Android Chrome Custom Tabs
otherLikelyURLs:- Android Chrome Custom Tabs
referrer:- Android Chrome Custom Tabs
settings: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(platforms: [AndroidPlatform(), IOSPlatform()])
Future<void> open({
WebUri? url,
@SupportedPlatforms(platforms: [AndroidPlatform()])
Map<String, String>? headers,
@SupportedPlatforms(platforms: [AndroidPlatform()])
List<WebUri>? otherLikelyURLs,
@SupportedPlatforms(platforms: [AndroidPlatform()]) WebUri? referrer,
@Deprecated('Use settings instead')
// ignore: deprecated_member_use_from_same_package
ChromeSafariBrowserClassOptions? options,
ChromeSafariBrowserSettings? settings,
}) {
throw UnimplementedError('open is not implemented on the current platform');
}