applyIfPossible

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.

Parameters

context

The target context.

colorResourceIdsToColorValues

The mapping from the color resources id to the updated color value.