Package com.tomtom.tools.android.api.resourceresolution.stringarray

Types

Link copied to clipboard
data class AttrStringArrayResolver(@AttrRes attrId: Int) : StringArrayResolver

A StringArrayResolver that resolves a string array from a theme based on attrId.

Link copied to clipboard
data class ResourceStringArrayResolver(@ArrayRes resourceId: Int) : StringArrayResolver

A ResourceStringArrayResolver that resolves a string array from resources.

Link copied to clipboard
data class StaticStringArrayResolver(value: Array<String>) : StringArrayResolver

A StringArrayResolver that always returns the given value.

Link copied to clipboard
interface StringArrayResolver : Parcelable

An interface for classes that resolve a string array 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 Locale or display without needing a Context to resolve its value.