onCompletedInitialLoad method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(apiName: 'SFSafariViewControllerDelegate.safariViewController', apiUrl: 'https://developer.apple.com/documentation/safariservices/sfsafariviewcontrollerdelegate/1621215-safariviewcontroller')])
void onCompletedInitialLoad(
  1. @SupportedPlatforms.new(platforms: [IOSPlatform()]) bool? didLoadSuccessfully
)

Event fired when the initial URL load is complete.

didLoadSuccessfully - true if loading completed successfully; otherwise, false.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • didLoadSuccessfully:
    • iOS WKWebView

Use the PlatformChromeSafariBrowserEvents.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(),
    IOSPlatform(
      apiName: 'SFSafariViewControllerDelegate.safariViewController',
      apiUrl:
          'https://developer.apple.com/documentation/safariservices/sfsafariviewcontrollerdelegate/1621215-safariviewcontroller',
    ),
  ],
)
void onCompletedInitialLoad(
  @SupportedPlatforms(platforms: [IOSPlatform()]) bool? didLoadSuccessfully,
) {}