setContentBasedSource

@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. Calling this method will clear any source color previously set with #setContentBasedSource(int).


@CanIgnoreReturnValue
open fun setContentBasedSource(@ColorInt contentBasedSource: Int): DynamicColorsOptions.Builder

Sets the content based source color to generate Material color palette. Calling this method will clear any source bitmap previously set with #setContentBasedSource(Bitmap).