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

From

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

Annotate parameters with this specifying a ValueSource class to initialize invoke views with an initial value.

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.

See Also

Values

Constructors

Name Summary
<init> From(source: KClass<out ValueSource<*>>)
Annotate parameters with this specifying a ValueSource class to initialize invoke views with an initial value.

Properties

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