https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

addamsson

11/17/2018, 2:00 PM
Do you know what is the best practice to hide code from Java / Kotlin users? What I found is
@JvmSynthetic
which can be used to hide things from the Java API and the
internal
which can be used to hide things from the Kotlin API. My goal is to have idiomatic APIs for both Kotlin and Java users
t

thevery

11/17/2018, 2:05 PM
Have you seen Jake's talk about kotlin APIs on IO'18?
a

addamsson

11/17/2018, 2:07 PM
Not yet. Can you point me in the right direction?
This one?

https://www.youtube.com/watch?v=st1XVfkDWqk

t

thevery

11/17/2018, 2:30 PM
Yeah, there is a section about making API kotlin-friendly
a

addamsson

11/17/2018, 2:38 PM
He does not talk about what I'm asking 😞
I watched the talk
I'm still not sure about
internal
I mean it works but it seems a bit hacky