ColorResourcesOverride

The interface class that hides the detailed implementation of color resources override at runtime. (e.g. with Resources Loader implementation pre-U.)

Functions

Link copied to clipboard
abstract fun applyIfPossible(@NonNull context: Context, @NonNull colorResourceIdsToColorValues: Map<Integer, Integer>): Boolean
Overrides the color resources to the given context, returns true if new color values have been applied.
Link copied to clipboard
Link copied to clipboard
abstract fun wrapContextIfPossible(@NonNull context: Context, @NonNull colorResourceIdsToColorValues: Map<Integer, Integer>): Context
Wraps the given Context with the theme overlay where color resources are updated at runtime.