So I am writing a library in Java and want to hide...
# getting-started
c
So I am writing a library in Java and want to hide some methods for Kotlin clients. Is there any way to accomplish this? I tried using the
kotlin.Deprecated
annotation with
level=HIDDEN
in my Java code. Unfortunately, this does not actually hide the class but only marks it as deprecated. Do you have any idea what else I could do?
c
Have you tried declaring an opt-in? Maybe that works better The other way around, there is
@JvmSynthetic
(to hide a Kotlin function from Java), but I don't know how to that from the Java side