resource

abstract fun <T : Any> resource(type: Class<T>, name: String?, key: String): T

The application's object of type that name names, else its only (or primary) one; fails naming key, the setting that names it, when there is none.