epoxy-processor / com.airbnb.epoxy / MultiParamAttribute

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.

Properties

params

abstract val params: List<ParameterSpec>

valueToSetOnAttribute

abstract val valueToSetOnAttribute: CodeBlock

This code should combine the params into a single object which can then be set on the attribute.

Functions

varargs

abstract fun varargs(): Boolean