kotlin-delegate Questions
6
Solved
When overriding an interface method implemented by class delegation, is it possible to call the class which is normally delegated to from within an overriding function? Similar to how you would cal...
Aalst asked 14/12, 2017 at 10:23
2
Solved
I want to use Kotlin delegation in a particular context.
The delegate should not be passed in the constructor.
I want to keep a reference to the delegate for later use in the code. From within the...
Meijer asked 21/4, 2022 at 13:18
2
Solved
Here's an example from Delegated properties documentation.
import kotlin.reflect.KProperty
class Delegate {
operator fun getValue(thisRef: Any?, property: KProperty<*>): String {
return &q...
Tarahtaran asked 29/10, 2021 at 12:23
2
Solved
How to I set up an interface listener for detecting a variable change in Kotlin. I successful implemented the following in Java, but am running into issues doing it in Kotlin:
Interface:
public i...
Towrey asked 22/1, 2019 at 17:49
1
Solved
I'm trying to combine delegates/observable with vetoable (which isn't a problem after looking at the source kotlin.properties.Delegates.kt), but things got hairy when trying to also store the prope...
Halfbaked asked 15/10, 2018 at 2:55
1
© 2022 - 2024 — McMap. All rights reserved.