# CustomTabColorSchemeParams.Builder

Artifact: [androidx.browser:browser](https://developer.android.com/jetpack/androidx/releases/browser) [View Source](https://cs.android.com/search?q=file:androidx/browser/customtabs/CustomTabColorSchemeParams.java+class:androidx.browser.customtabs.CustomTabColorSchemeParams.Builder) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

*** ** * ** ***


```
class CustomTabColorSchemeParams.Builder
```

<br />

*** ** * ** ***

Builder class for `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams` objects. The browser's default colors will be used for any unset value.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#Builder()()` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams` | `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#build()()` Combines all the options that have been into a `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams` object. |
| `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder` | `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#setNavigationBarColor(int)(color: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder` | `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#setNavigationBarDividerColor(int)(color: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder` | `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#setSecondaryToolbarColor(int)(color: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder` | `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#setToolbarColor(int)(color: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Public constructors

### Builder

Added in 1.2.0

```
Builder()
```

## Public functions

### build

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
fun build(): CustomTabColorSchemeParams
```

Combines all the options that have been into a `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabColorSchemeParams` object.

### setNavigationBarColor

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
fun setNavigationBarColor(color: @ColorInt Int): CustomTabColorSchemeParams.Builder
```

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabsIntent.Builder#setNavigationBarColor(int)` |   |

### setNavigationBarDividerColor

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/browser#1.3.0)

```
fun setNavigationBarDividerColor(color: @ColorInt Int): CustomTabColorSchemeParams.Builder
```

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabsIntent.Builder#setNavigationBarDividerColor(int)` |   |

### setSecondaryToolbarColor

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
fun setSecondaryToolbarColor(color: @ColorInt Int): CustomTabColorSchemeParams.Builder
```

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabsIntent.Builder#setSecondaryToolbarColor(int)` |   |

### setToolbarColor

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/browser#1.2.0)

```
fun setToolbarColor(color: @ColorInt Int): CustomTabColorSchemeParams.Builder
```

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/browser/customtabs/CustomTabsIntent.Builder#setToolbarColor(int)` |   |