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 |
|---|
Builder() |
Public methods |
|
|---|---|
@NonNull AuthTabColorSchemeParams |
build()Combines all the options that have been set and returns a new |
@NonNull AuthTabColorSchemeParams.Builder |
setNavigationBarColor(@ColorInt int color)Sets the navigation bar color. |
@NonNull AuthTabColorSchemeParams.Builder |
setNavigationBarDividerColor(@ColorInt int color)Sets the navigation bar divider color. |
@NonNull AuthTabColorSchemeParams.Builder |
setToolbarColor(@ColorInt int color)Sets the toolbar color. |
Public constructors
Public methods
build
public @NonNull AuthTabColorSchemeParams build()
Combines all the options that have been set and returns a new AuthTabColorSchemeParams object.
setNavigationBarColor
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
public @NonNull AuthTabColorSchemeParams.Builder setNavigationBarDividerColor(@ColorInt int color)
Sets the navigation bar divider color.
| Parameters | |
|---|---|
@ColorInt int color |
The color integer. |
setToolbarColor
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. |