in multiplatform, if I need to access an internal ...
# getting-started
e
in multiplatform, if I need to access an internal field in a third (kotlin) library, is reflection the way to go?
y
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
does the trick, and if eventually the compiler disallows it, then yes reflection would do the trick.
e
yeah, I saw, but unfortunately the reflection support on MP is almost inexistent..
c
In general, you should ask the library authors to make it
public
. You don't know when the field will disappear.
e
yeah, it's not a long term approach