setColorSchemeParams
Sets CustomTabColorSchemeParams for the given colour scheme.
This allows specifying two different toolbar colours for light and dark schemes. It can be useful if ColorScheme.System is set: Custom Tabs will follow the system settings and apply the corresponding CustomTabColorSchemeParams "on the fly" when the settings change.
If there is no CustomTabColorSchemeParams for the current scheme, or a particular field of it is null, Custom Tabs will fall back to the defaults provided via setDefaultColorSchemeParams.
This method allows for the ColorScheme enum to be used.
Since
0.0.1
Parameters
A constant representing a color scheme (see setColorScheme). It should not be ColorScheme.System, because that represents a behavior rather than a particular color scheme.
An instance of CustomTabColorSchemeParams.
See also
Sets CustomTabColorSchemeParams for the given colour scheme.
This allows specifying two different toolbar colours for light and dark schemes. It can be useful if ColorScheme.System is set: Custom Tabs will follow the system settings and apply the corresponding CustomTabColorSchemeParams "on the fly" when the settings change.
If there is no CustomTabColorSchemeParams for the current scheme, or a particular field of it is null, Custom Tabs will fall back to the defaults provided via setDefaultColorSchemeParams.
This method allows for the ColorScheme enum to be used, as well as DSL syntax to configure the CustomTabColorSchemeParams.
Since
0.0.1
Parameters
A constant representing a color scheme (see setColorScheme). It should not be ColorScheme.System, because that represents a behavior rather than a particular color scheme.
Block to be used to configure a CustomTabColorSchemeParams.
See also
Sets CustomTabColorSchemeParams for the given colour scheme.
This allows specifying two different toolbar colours for light and dark schemes. It can be useful if ColorScheme.System is set: Custom Tabs will follow the system settings and apply the corresponding CustomTabColorSchemeParams "on the fly" when the settings change.
If there is no CustomTabColorSchemeParams for the current scheme, or a particular field of it is null, Custom Tabs will fall back to the defaults provided via setDefaultColorSchemeParams.
This method allows for the ColorScheme enum to be used, as well as named arguments to configure the CustomTabColorSchemeParams.
Since
0.0.1
Parameters
A constant representing a color scheme (see setColorScheme). It should not be ColorScheme.System, because that represents a behavior rather than a particular color scheme.