AndroidAuthSessionOptions¶
Configuration options for an AndroidAuthSession. Properties left as null use the system or browser default. Use AndroidAuthSessionOptionsBuilder to create instances.
Kodster.InAppWebBrowser.Android.AndroidAuthSessionOptions
Creating Instances¶
Always use AndroidAuthSessionOptionsBuilder to create AndroidAuthSessionOptions:
#if UNITY_ANDROID
var options = new AndroidAuthSessionOptionsBuilder()
.WithColorScheme(AndroidColorScheme.Dark)
.WithCloseButtonIcon(CloseButtonIcon.Close)
.Build();
var result = await AndroidAuthSession.StartAsync(url, redirectScheme, options);
#endif
Properties¶
ColorScheme¶
Color scheme used for the session UI.
Remarks
- Possible values:
System,Light,Dark. - When
null, browser defaults are used.
LightColorSchemeOptions¶
Color customization applied when the session is in light mode.
Remarks
- When
null, browser defaults are used.
DarkColorSchemeOptions¶
Color customization applied when the session is in dark mode.
Remarks
- When
null, browser defaults are used.
DefaultColorSchemeOptions¶
Color customization used as a fallback when no mode-specific options are matched.
Remarks
- When
null, browser defaults are used.
EphemeralBrowsingEnabled¶
Whether the session clears cookies and browsing data when closed.
Remarks
- When
true, cookies and session data are cleared after the session is closed. - When
null, browser defaults are used.
CloseButtonIcon¶
The icon style used for the close button.
Remarks
- When
null, browser defaults are used.