Builder

open class Builder

Builder class for specifying options when applying dynamic colors.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
@CanIgnoreReturnValue
open fun setContentBasedSource(@NonNull contentBasedSource: Bitmap): DynamicColorsOptions.Builder
Sets the content based source image from which to extract the seed color for the Material color palette.
@CanIgnoreReturnValue
open fun setContentBasedSource(@ColorInt contentBasedSource: Int): DynamicColorsOptions.Builder
Sets the content based source color to generate Material color palette.
Link copied to clipboard
Sets the callback method for after the dynamic colors have been applied.
Link copied to clipboard
Sets the precondition that decides if dynamic colors should be applied.
Link copied to clipboard
@CanIgnoreReturnValue
open fun setThemeOverlay(@StyleRes themeOverlay: Int): DynamicColorsOptions.Builder
Sets the resource ID of the theme overlay that provides dynamic color definition.