canStart method
- @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')])
Indicates whether the session can begin.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - ASWebAuthenticationSession.canStart)
- macOS WKWebView (Official API - ASWebAuthenticationSession.canStart)
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',
);
}