# 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)

*** ** * ** ***


```
public final class CustomTabColorSchemeParams.Builder
```

<br />

*** ** * ** ***

Builder class for `https://developer.android.com/reference/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/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#Builder()()` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/browser/customtabs/CustomTabColorSchemeParams` | `https://developer.android.com/reference/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#build()()` Combines all the options that have been into a `https://developer.android.com/reference/androidx/browser/customtabs/CustomTabColorSchemeParams` object. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder` | `https://developer.android.com/reference/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#setNavigationBarColor(int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder` | `https://developer.android.com/reference/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#setNavigationBarDividerColor(int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder` | `https://developer.android.com/reference/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#setSecondaryToolbarColor(int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder` | `https://developer.android.com/reference/androidx/browser/customtabs/CustomTabColorSchemeParams.Builder#setToolbarColor(int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color)` |

## Public constructors

### Builder

Added in 1.2.0

```
public Builder()
```

## Public methods

### build

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

```
public @NonNull CustomTabColorSchemeParams build()
```

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

### setNavigationBarColor

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

```
public @NonNull CustomTabColorSchemeParams.Builder setNavigationBarColor(@ColorInt int color)
```

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

### setNavigationBarDividerColor

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

```
public @NonNull CustomTabColorSchemeParams.Builder setNavigationBarDividerColor(@ColorInt int color)
```

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

### setSecondaryToolbarColor

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

```
public @NonNull CustomTabColorSchemeParams.Builder setSecondaryToolbarColor(@ColorInt int color)
```

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

### setToolbarColor

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

```
public @NonNull CustomTabColorSchemeParams.Builder setToolbarColor(@ColorInt int color)
```

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