onWillOpenInBrowser method
- @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'SFSafariViewControllerDelegate.safariViewControllerWillOpenInBrowser', apiUrl: 'https://developer.apple.com/documentation/safariservices/sfsafariviewcontrollerdelegate/3650426-safariviewcontrollerwillopeninbr', available: '14.0')])
Event fired when the user opens the current page in the default browser by tapping the toolbar button.
Officially Supported Platforms/Implementations:
- iOS WKWebView 14.0+ (Official API - SFSafariViewControllerDelegate.safariViewControllerWillOpenInBrowser)
Use the PlatformChromeSafariBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
IOSPlatform(
apiName:
'SFSafariViewControllerDelegate.safariViewControllerWillOpenInBrowser',
apiUrl:
'https://developer.apple.com/documentation/safariservices/sfsafariviewcontrollerdelegate/3650426-safariviewcontrollerwillopeninbr',
available: '14.0',
),
],
)
void onWillOpenInBrowser() {}