resType

abstract fun resType(): ResType

Declares that the default value must be a resource of the specified ResType.

For example:

@LayoutSpec
class SomeSpec {

 @PropDefault(resType = ResType.STRING, resId = R.string.default_name)
  static final String name = null;

}

Return

A valid resource type.