gh-pages / com.nextfaze.devfun.invoke.view / Values

Values

@Target([AnnotationTarget.VALUE_PARAMETER]) annotation class Values (source)

Annotate parameters with this specifying an Iterable class to initialize invoke views with a list of values.

See the ValueSource documentation for more information and examples.

Note: This annotation is optional. If not present then the view state will be whatever it is by default. i.e. A Switch will be off, a TextView will be empty, etc.

This annotation is somewhat experimental. TODO? Allow specifying default value on annotation

See Also

From

Constructors

Name Summary
<init> Values(source: KClass<out ValueSource<Iterable<*>>>)
Annotate parameters with this specifying an Iterable class to initialize invoke views with a list of values.

Properties

Name Summary
source val source: KClass<out ValueSource<Iterable<*>>>
The ValueSource class that will be injected/instantiated when the parameter value is needed.