onWillOpenInBrowser method

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'SFSafariViewControllerDelegate.safariViewControllerWillOpenInBrowser', apiUrl: 'https://developer.apple.com/documentation/safariservices/sfsafariviewcontrollerdelegate/3650426-safariviewcontrollerwillopeninbr', available: '14.0')])
void onWillOpenInBrowser()

Event fired when the user opens the current page in the default browser by tapping the toolbar button.

Officially Supported Platforms/Implementations:

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() {}