StringResolver
An interface for classes that resolve a String 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.
There are two main types of string resolvers:
A StableStringResolver resolves to a single string.
A FlowStringResolver provides a flow of strings.
Accepting a StringResolver as a function argument implies that both the stable- and flow string resolvers are supported.