WebAuthenticationSessionSettings class

Class that represents the settings that can be used for a PlatformWebAuthenticationSession.

Officially Supported Platforms/Implementations:

  • iOS WKWebView 13.0+
  • macOS WKWebView 10.15+

Constructors

WebAuthenticationSessionSettings({Map<String, String>? additionalHeaderFields, bool? prefersEphemeralWebBrowserSession = false})
Officially Supported Platforms/Implementations:

Properties

additionalHeaderFields Map<String, String>?
Additional HTTP headers sent with the authentication request when the native API supports them.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
prefersEphemeralWebBrowserSession bool?
A Boolean value that indicates whether the session should ask the browser for a private authentication session.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copy() WebAuthenticationSessionSettings
Returns a copy of WebAuthenticationSessionSettings.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts instance to a map.
toMap({EnumMethod? enumMethod}) Map<String, dynamic>
Converts instance to a map.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic>? map, {EnumMethod? enumMethod}) WebAuthenticationSessionSettings?
Gets a possible WebAuthenticationSessionSettings instance from a Map value.
isPropertySupported(WebAuthenticationSessionSettingsProperty property, {TargetPlatform? platform}) bool
Check if the given property is supported by the defaultTargetPlatform or a specific platform.