Is it possible to reference a delegated property f...
# announcements
a
Is it possible to reference a delegated property from Java? I would normally write this line in Kotlin:
var myString: String by SharedPrefsString(myPrefs)
but I wanna use my SharedPrefsString type in Java, if possible.
d
Not really possible, directly, since the delegation requires a
KProperty
, which is Kotlin-exclusive.
👍 1
a
Cool. Thanks for verifying. 🙂