In Kotlin, I need a listener for a short piece of code which returns something, so it detects if the value returned of that code has changed. And when I mean short piece of code