canStart method

  1. @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'ASWebAuthenticationSession.canStart', apiUrl: 'https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/3516277-canstart'), MacOSPlatform(apiName: 'ASWebAuthenticationSession.canStart', apiUrl: 'https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/3516277-canstart')])
Future<bool> canStart()

Indicates whether the session can begin.

Officially Supported Platforms/Implementations:

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

Implementation

@SupportedPlatforms(
  platforms: [
    IOSPlatform(
      apiName: 'ASWebAuthenticationSession.canStart',
      apiUrl:
          'https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/3516277-canstart',
    ),
    MacOSPlatform(
      apiName: 'ASWebAuthenticationSession.canStart',
      apiUrl:
          'https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/3516277-canstart',
    ),
  ],
)
Future<bool> canStart() {
  throw UnimplementedError(
    'canStart is not implemented on the current platform',
  );
}