resType

abstract fun resType(): ResType

Marks this prop as one that corresponds to a specific Android resource type, and therefore generates various helper methods to initialize it.

For example, a CharSequence prop named "title" may be marked as STRING. This will make the component have not only method "title(CharSequence)" but also various methods that enable initializing the prop from a resource or attribute:


  titleRes(@StringRes int resId)
  titleRes(@StringRes int resId, Object... formatArgs)
  titleAttr(@AttrRes int attrResId, @StringRes int defResId)
  titleAttr(@AttrRes int attrResId)

Return

The resource type.