-
-
Constructor Summary
Constructors Constructor Description KDSLView()
-
Method Summary
-
-
Method Detail
-
invoke
final Unit invoke(Function1<T, Unit> function)
Operator that allows usage of DSL style
- Parameters:
function- Tail lambda with receiver which is your view
-
perform
final T perform(Function1<T, Unit> function)
Infix function for invoking lambda on your view
Sometimes instance of view is a result of a function or constructor. In this specific case you can't call invoke() since it will be considered as tail lambda of your fun/constructor. In such cases please use this function.
- Parameters:
function- Tail lambda with receiver which is your view
-
-
-
-