QuestionnaireItemViewHolderFactoryMatcher

data class QuestionnaireItemViewHolderFactoryMatcher(factory: QuestionnaireItemViewHolderFactory, matches: (<ERROR CLASS>) -> Boolean)

Data class that holds a matcher function (matches) which evaluates whether a given factory should be used to display a given Questionnaire.QuestionnaireItemComponent.

See the developer guide for more information.

Constructors

fun QuestionnaireItemViewHolderFactoryMatcher(factory: QuestionnaireItemViewHolderFactory, matches: (<ERROR CLASS>) -> Boolean)

Properties

Link copied to clipboard
val factory: QuestionnaireItemViewHolderFactory
Link copied to clipboard
val matches: (<ERROR CLASS>) -> Boolean

A predicate function which, given a Questionnaire.QuestionnaireItemComponent, returns true if the factory should apply to that item.