One Logo Pool Ball
AuthenticationServices · IOS API REFERENCE

ASWebAuthenticationSession

class · iOS 12.0+ · SDK 27.1

class ASWebAuthenticationSession

Members (11)

method · iOS 12.0+

cancel

TypeScript
cancel(): void
Swift declaration
func cancel()
init · iOS 17.4+

init

TypeScript
static initUrlCallbackCompletionHandler(URL: string, callback: ASWebAuthenticationSession_Callback, completionHandler: ((arg0: (string) | null, arg1: (NativeError) | null) => void)): ASWebAuthenticationSession
Swift declaration
init(url URL: URL, callback: ASWebAuthenticationSession.Callback, completionHandler: @escaping ASWebAuthenticationSession.CompletionHandler)
init · iOS 12.0+ · Deprecated in iOS 100000.0

init

TypeScript
static initUrlCallbackURLSchemeCompletionHandler(URL: string, callbackURLScheme: (string) | null, completionHandler: ((arg0: (string) | null, arg1: (NativeError) | null) => void)): ASWebAuthenticationSession
Swift declaration
init(url URL: URL, callbackURLScheme: String?, completionHandler: @escaping ASWebAuthenticationSession.CompletionHandler)
method · iOS 12.0+

start

TypeScript
start(): boolean
Swift declaration
func start() -> Bool
get · iOS 17.4+

additionalHeaderFields

TypeScript
get additionalHeaderFields(): (Record<string, string>) | null
Swift declaration
var additionalHeaderFields: [String : String]? { get set }
set · iOS 17.4+

additionalHeaderFields

TypeScript
set additionalHeaderFields(value: (Record<string, string>) | null)
Swift declaration
var additionalHeaderFields: [String : String]? { get set }
get · iOS 13.4+

canStart

TypeScript
get canStart(): boolean
Swift declaration
var canStart: Bool { get }
get · iOS 13.0+

prefersEphemeralWebBrowserSession

TypeScript
get prefersEphemeralWebBrowserSession(): boolean
Swift declaration
var prefersEphemeralWebBrowserSession: Bool { get set }
set · iOS 13.0+

prefersEphemeralWebBrowserSession

TypeScript
set prefersEphemeralWebBrowserSession(value: boolean)
Swift declaration
var prefersEphemeralWebBrowserSession: Bool { get set }
get · iOS 13.0+

presentationContextProvider

TypeScript
get presentationContextProvider(): (SDKHandle) | null
Swift declaration
weak var presentationContextProvider: (any ASWebAuthenticationPresentationContextProviding)? { get set }
set · iOS 13.0+

presentationContextProvider

TypeScript
set presentationContextProvider(value: (SDKHandle) | null)
Swift declaration
weak var presentationContextProvider: (any ASWebAuthenticationPresentationContextProviding)? { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ASWebAuthenticationSession.init()

inherited init: cannot prove legal (class declares 4 custom initializers)

All AuthenticationServices types →