Únete a ⁠ #Android11: The Beta Launch Show el 3 de junio.

Builder

class Builder
kotlin.Any
   ↳ 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 class for CustomTabColorSchemeParams objects.

Public methods

CustomTabColorSchemeParams

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

CustomTabColorSchemeParams.Builder
setNavigationBarColor(@ColorInt color: Int)

CustomTabColorSchemeParams.Builder
setSecondaryToolbarColor(@ColorInt color: Int)

CustomTabColorSchemeParams.Builder
setToolbarColor(@ColorInt color: Int)

Public constructors

<init>

Builder()

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

Public methods

build

@NonNull fun build(): CustomTabColorSchemeParams

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

setNavigationBarColor

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

setSecondaryToolbarColor

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

setToolbarColor

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