isAvailable method

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(), MacOSPlatform()])
Future<bool> isAvailable()

Returns true if ASWebAuthenticationSession or SFAuthenticationSession is available. Otherwise returns false.

Officially Supported Platforms/Implementations:

  • iOS WKWebView
  • macOS WKWebView

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

Implementation

@SupportedPlatforms(platforms: [IOSPlatform(), MacOSPlatform()])
Future<bool> isAvailable() {
  throw UnimplementedError(
    'isAvailable is not implemented on the current platform',
  );
}