gh-pages / com.nextfaze.devfun.function / DeveloperProperty / <init>
<init>
DeveloperProperty(value:
String
= "", category:
DeveloperCategory
= DeveloperCategory(group = "Properties"), requiresApi:
Int
= 0, transformer:
KClass
<out
FunctionTransformer
> = PropertyTransformer::class)
An annotation that, when used on Kotlin properties, allows DevFun to provide the means of getting/setting properties on the fly.
For simple/registered types DevFun will render a UI by the same means as when invoking a function.
DevFun will correctly use the delegated getter/setter.
Be aware, when DevFun attempts to process its generated code (such as when you open the DevMenu or access the web server), propertygetters will be called for their toString
(special exception for lazy
types however).
This feature is experimental.
See Also