AuthTabColorSchemeParams.Builder


public final class AuthTabColorSchemeParams.Builder


Builder class for AuthTabColorSchemeParams objects. The browser's default colors will be used for any unset value.

Summary

Public constructors

Public methods

@NonNull AuthTabColorSchemeParams

Combines all the options that have been set and returns a new AuthTabColorSchemeParams object.

@NonNull AuthTabColorSchemeParams.Builder

Sets the navigation bar color.

@NonNull AuthTabColorSchemeParams.Builder

Sets the navigation bar divider color.

@NonNull AuthTabColorSchemeParams.Builder

Sets the toolbar color.

Public constructors

Builder

Added in 1.9.0-alpha01
public Builder()

Public methods

build

Added in 1.9.0-alpha01
public @NonNull AuthTabColorSchemeParams build()

Combines all the options that have been set and returns a new AuthTabColorSchemeParams object.

setNavigationBarColor

Added in 1.9.0-alpha01
public @NonNull AuthTabColorSchemeParams.Builder setNavigationBarColor(@ColorInt int color)

Sets the navigation bar color. To ensure good contrast between navigation bar icons and the background, Auth Tab implementations may use APPEARANCE_LIGHT_NAVIGATION_BARS.

Parameters
@ColorInt int color

The color integer. The alpha value will be ignored.

setNavigationBarDividerColor

Added in 1.9.0-alpha01
public @NonNull AuthTabColorSchemeParams.Builder setNavigationBarDividerColor(@ColorInt int color)

Sets the navigation bar divider color.

Parameters
@ColorInt int color

The color integer.

setToolbarColor

Added in 1.9.0-alpha01
public @NonNull AuthTabColorSchemeParams.Builder setToolbarColor(@ColorInt int color)

Sets the toolbar color. This color is also applied to the status bar. To ensure good contrast between status bar icons and the background, Auth Tab implementations may use APPEARANCE_LIGHT_STATUS_BARS.

Parameters
@ColorInt int color

The color integer. The alpha value will be ignored.