gh-pages / com.nextfaze.devfun.invoke / Parameter

Parameter

interface Parameter (source)

Effectively just a wrapper for KParameter to allow libraries to use it without declaring a dependency on the kotlin-reflect lib.

Currently DevFun requires the reflect lib so its safe to hide it like this for implementors to use. In the future (ideally) the need for the reflect lib will be removed without the need for old code to change.

Properties

Name Summary
annotations open val annotations: List<Annotation>
The annotations on the parameter.
name abstract val name: CharSequence?
The name of the parameter.
type abstract val type: KClass<*>
The parameter’s type/class.

Inheritors

Name Summary
UiField interface UiField<T : Any> : Parameter, WithInitialValue<T>
Utility interface to easily generate an invoke UI/dialog. (experimental)