AuthTabColorSchemeParams.Builder


class AuthTabColorSchemeParams.Builder


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

Summary

Public constructors

Public functions

AuthTabColorSchemeParams

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

AuthTabColorSchemeParams.Builder

Sets the navigation bar color.

AuthTabColorSchemeParams.Builder

Sets the navigation bar divider color.

AuthTabColorSchemeParams.Builder

Sets the toolbar color.

Public constructors

Builder

Added in 1.9.0-alpha01
Builder()

Public functions

build

Added in 1.9.0-alpha01
fun build(): AuthTabColorSchemeParams

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

setNavigationBarColor

Added in 1.9.0-alpha01
fun setNavigationBarColor(color: @ColorInt Int): AuthTabColorSchemeParams.Builder

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
color: @ColorInt Int

The color integer. The alpha value will be ignored.

setNavigationBarDividerColor

Added in 1.9.0-alpha01
fun setNavigationBarDividerColor(color: @ColorInt Int): AuthTabColorSchemeParams.Builder

Sets the navigation bar divider color.

Parameters
color: @ColorInt Int

The color integer.

setToolbarColor

Added in 1.9.0-alpha01
fun setToolbarColor(color: @ColorInt Int): AuthTabColorSchemeParams.Builder

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
color: @ColorInt Int

The color integer. The alpha value will be ignored.