# AuthTabColorSchemeParams.Builder

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

*** ** * ** ***


```
public final class AuthTabColorSchemeParams.Builder
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/browser/auth/AuthTabColorSchemeParams.Builder#Builder()()` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/browser/auth/AuthTabColorSchemeParams` | `https://developer.android.com/reference/androidx/browser/auth/AuthTabColorSchemeParams.Builder#build()()` Combines all the options that have been set and returns a new `https://developer.android.com/reference/androidx/browser/auth/AuthTabColorSchemeParams` object. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/browser/auth/AuthTabColorSchemeParams.Builder` | `https://developer.android.com/reference/androidx/browser/auth/AuthTabColorSchemeParams.Builder#setNavigationBarColor(int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color)` Sets the navigation bar color. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/browser/auth/AuthTabColorSchemeParams.Builder` | `https://developer.android.com/reference/androidx/browser/auth/AuthTabColorSchemeParams.Builder#setNavigationBarDividerColor(int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color)` Sets the navigation bar divider color. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/browser/auth/AuthTabColorSchemeParams.Builder` | `https://developer.android.com/reference/androidx/browser/auth/AuthTabColorSchemeParams.Builder#setToolbarColor(int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int color)` Sets the toolbar color. |

## Public constructors

### Builder

Added in 1.9.0

```
public Builder()
```

## Public methods

### build

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

```
public @NonNull AuthTabColorSchemeParams build()
```

Combines all the options that have been set and returns a new `https://developer.android.com/reference/androidx/browser/auth/AuthTabColorSchemeParams` object.

### setNavigationBarColor

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

```
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 |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int color` | The color integer. The alpha value will be ignored. |

### setNavigationBarDividerColor

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

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

Sets the navigation bar divider color.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int color` | The color integer. |

### setToolbarColor

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

```
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 |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int color` | The color integer. The alpha value will be ignored. |