invalidatePrewarmingToken method
- @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'SFSafariViewController.PrewarmingToken.invalidate', apiUrl: 'https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller/prewarmingtoken/invalidate()', available: '15.0')])
- 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:
- iOS SFSafariViewController 15.0+ (Official API - SFSafariViewController.PrewarmingToken.invalidate)
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',
);
}