Google is committed to advancing racial equity for Black communities. See how.

CustomTabColorSchemeParams.Builder

public static final class CustomTabColorSchemeParams.Builder
extends Object

java.lang.Object
   ↳ androidx.browser.customtabs.CustomTabColorSchemeParams.Builder


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

Summary

Public constructors

Builder()

Public methods

CustomTabColorSchemeParams build()

Combines all the options that have been into a CustomTabColorSchemeParams object.

CustomTabColorSchemeParams.Builder setNavigationBarColor(int color)
CustomTabColorSchemeParams.Builder setSecondaryToolbarColor(int color)
CustomTabColorSchemeParams.Builder setToolbarColor(int color)

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public CustomTabColorSchemeParams build ()

Combines all the options that have been into a CustomTabColorSchemeParams object.

Returns
CustomTabColorSchemeParams

setNavigationBarColor

public CustomTabColorSchemeParams.Builder setNavigationBarColor (int color)

Parameters
color int

Returns
CustomTabColorSchemeParams.Builder

setSecondaryToolbarColor

public CustomTabColorSchemeParams.Builder setSecondaryToolbarColor (int color)

Parameters
color int

Returns
CustomTabColorSchemeParams.Builder

setToolbarColor

public CustomTabColorSchemeParams.Builder setToolbarColor (int color)

Parameters
color int

Returns
CustomTabColorSchemeParams.Builder