Package-level declarations

Types

Link copied to clipboard
data class AttrColorResolver(@AttrRes attrId: Int) : ColorResolver

A ColorResolver that resolves a color Int from a theme based on attrId.

Link copied to clipboard

An interface for classes that resolve a color Int based on a Context. This is useful to separate business logic from presentation, where a service or ViewModel can refer to a resource or other types of data that depend on the theme or display without needing a Context to resolve its value.

Link copied to clipboard
data class ResourceColorResolver(@ColorRes resourceId: Int) : ColorResolver

A ColorResolver that resolves a color Int from resources.

Link copied to clipboard
data class StaticColorResolver(@ColorInt colorInt: Int) : ColorResolver

A ColorResolver that always resolves to colorInt, regardless of Context.