MultiParamAttribute

interface MultiParamAttribute

Allows an attribute to have multiple parameters in the model setter method. Those params are then combined into a single object to be set on the attribute.

This is useful for things like combining a StringRes and format arguments into a single string.

Functions

varargs
Link copied to clipboard
abstract fun varargs(): Boolean

Properties

params
Link copied to clipboard
abstract val params: List<ParameterSpec>
valueToSetOnAttribute
Link copied to clipboard
abstract val valueToSetOnAttribute: CodeBlock
This code should combine the params into a single object which can then be set on the attribute.