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

WithValue

interface WithValue<T> (source)

Views used with the Invoke UI should implement this to ensure the correct value is obtainable upon invocation.

If absent, DevFun will attempt to grab the value based on the view type (e.g. if TextView it will use .text)

Currently null types are not well supported due to limitations/complications of KAPT and reflection. It is intended to be better supported in the future - use at your own risk.

Properties

Name Summary
value abstract var value: T
The value of this view to be passed to the function for invocation.

Inheritors

Name Summary
ErrorParameterView interface ErrorParameterView : WithValue<KClass<*>>
A simple view that should tell the user if a view could not be injected/rendered.
InjectedParameterView interface InjectedParameterView : WithValue<KClass<*>>
A simple view that should tell the user if a parameter is being injected.