gh-pages / com.nextfaze.devfun.function / DeveloperProperty
DeveloperProperty
@Target([AnnotationTarget.PROPERTY]) annotation class DeveloperProperty
(source)
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
Constructors
Name | Summary |
---|---|
<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. |
Properties
Name | Summary |
---|---|
category | val category: DeveloperCategory |
requiresApi | val requiresApi: Int |
transformer | val transformer: KClass <out FunctionTransformer > |
value | val value: String |