start method
- @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'ASWebAuthenticationSession.start', apiUrl: 'https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/2990953-start'), MacOSPlatform(apiName: 'ASWebAuthenticationSession.start', apiUrl: 'https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/2990953-start')])
Starts the web authentication session.
Returns a boolean value indicating whether the web authentication session started successfully.
Only call this method once for a given PlatformWebAuthenticationSession instance after initialization. Calling the start method on a canceled session results in a failure.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - ASWebAuthenticationSession.start)
- macOS WKWebView (Official API - ASWebAuthenticationSession.start)
Use the PlatformWebAuthenticationSession.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
IOSPlatform(
apiName: 'ASWebAuthenticationSession.start',
apiUrl:
'https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/2990953-start',
),
MacOSPlatform(
apiName: 'ASWebAuthenticationSession.start',
apiUrl:
'https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/2990953-start',
),
],
)
Future<bool> start() {
throw UnimplementedError(
'start is not implemented on the current platform',
);
}