invalidatePrewarmingToken method

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'SFSafariViewController.PrewarmingToken.invalidate', apiUrl: 'https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller/prewarmingtoken/invalidate()', available: '15.0')])
Future<void> invalidatePrewarmingToken(
  1. PrewarmingToken prewarmingToken
)

Ends all prewarmed connections associated with the token, except for connections that are also kept alive by other tokens.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • prewarmingToken: all platforms

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

Implementation

@SupportedPlatforms(
  platforms: [
    IOSPlatform(
      apiName: 'SFSafariViewController.PrewarmingToken.invalidate',
      apiUrl:
          'https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller/prewarmingtoken/invalidate()',
      available: '15.0',
    ),
  ],
)
Future<void> invalidatePrewarmingToken(PrewarmingToken prewarmingToken) {
  throw UnimplementedError(
    'invalidatePrewarmingToken is not implemented on the current platform',
  );
}