DynamicColors.Precondition

public static interface DynamicColors.Precondition

com.google.android.material.color.DynamicColors.Precondition


The interface that provides a precondition to decide if dynamic colors should be applied.

Summary

Public methods

abstract boolean shouldApplyDynamicColors(Activity activity, int theme)

Return true if dynamic colors should be applied on the given activity with the given theme overlay.

Public methods

shouldApplyDynamicColors

public abstract boolean shouldApplyDynamicColors (Activity activity, 
                int theme)

Return true if dynamic colors should be applied on the given activity with the given theme overlay.

Parameters
activity Activity

theme int

Returns
boolean