DynamicColorsOptions

public class DynamicColorsOptions


Wrapper class for specifying dynamic colors options when applying dynamic colors. Clients have the options to provide a custom theme overlay, set the precondition that decides if dynamic colors should be applied, set the callback method and/or set the color source image to apply content-based dynamic colors.

Summary

Nested types

Builder class for specifying options when applying dynamic colors.

Public methods

Integer

Returns the seed color extracted from the color source image.

DynamicColors.OnAppliedCallback

Returns the callback method after dynamic colors have been applied.

DynamicColors.Precondition

Returns the precondition that decides if dynamic colors should be applied.

int

Returns the resource ID of the theme overlay that provides dynamic color definition.

Public fields

contentBasedSeedColor

public Integer contentBasedSeedColor

onAppliedCallback

public final DynamicColors.OnAppliedCallback onAppliedCallback

precondition

public final DynamicColors.Precondition precondition

themeOverlay

public final int themeOverlay

Public methods

getContentBasedSeedColor

public Integer getContentBasedSeedColor()

Returns the seed color extracted from the color source image.

getOnAppliedCallback

public DynamicColors.OnAppliedCallback getOnAppliedCallback()

Returns the callback method after dynamic colors have been applied.

getPrecondition

public DynamicColors.Precondition getPrecondition()

Returns the precondition that decides if dynamic colors should be applied.

getThemeOverlay

public int getThemeOverlay()

Returns the resource ID of the theme overlay that provides dynamic color definition.