AuthTabOptionsBuilder¶
Fluent builder for constructing AuthTabOptions instances.
Overview¶
AuthTabOptionsBuilder provides a chainable API for configuring AuthTabOptions. Each With* method sets one option and returns the same builder instance for method chaining. Call Build() to create the final AuthTabOptions object.
Example¶
var options = new AuthTabOptionsBuilder()
.WithColorScheme(ColorScheme.Dark)
.WithEphemeralBrowsingEnabled(true)
.Build();
var result = await _authTab.LaunchAsync(url, redirectScheme, options);
Methods¶
WithColorScheme¶
Sets the color scheme for AuthTab.
Parameters
colorScheme(ColorScheme): The color scheme to apply.
Returns
- The current
AuthTabOptionsBuilderinstance.
WithLightColorSchemeOptions¶
public AuthTabOptionsBuilder WithLightColorSchemeOptions(
ColorSchemeOptions lightColorSchemeOptions
)
Sets color scheme options used when light mode is active.
Parameters
lightColorSchemeOptions(ColorSchemeOptions): Color overrides for light mode.
Returns
- The current
AuthTabOptionsBuilderinstance.
WithDarkColorSchemeOptions¶
public AuthTabOptionsBuilder WithDarkColorSchemeOptions(
ColorSchemeOptions darkColorSchemeOptions
)
Sets color scheme options used when dark mode is active.
Parameters
darkColorSchemeOptions(ColorSchemeOptions): Color overrides for dark mode.
Returns
- The current
AuthTabOptionsBuilderinstance.
WithDefaultColorSchemeOptions¶
public AuthTabOptionsBuilder WithDefaultColorSchemeOptions(
ColorSchemeOptions defaultColorSchemeOptions
)
Sets fallback color scheme options used when mode-specific options are not applied.
Parameters
defaultColorSchemeOptions(ColorSchemeOptions): Fallback color overrides.
Returns
- The current
AuthTabOptionsBuilderinstance.
WithEphemeralBrowsingEnabled¶
Sets whether ephemeral browsing is enabled for the auth session.
Parameters
ephemeralBrowsingEnabled(bool):trueto enable ephemeral browsing; otherwisefalse.
Returns
- The current
AuthTabOptionsBuilderinstance.
WithCloseButtonIcon¶
Sets the close button icon style.
Parameters
closeButtonIcon(CloseButtonIcon): The icon style to use.
Returns
- The current
AuthTabOptionsBuilderinstance.
Build¶
Builds and returns an AuthTabOptions instance from the current builder state.
Returns
- A new
AuthTabOptionsinstance with all configured properties. - Unset properties remain
null.