IntentionallyKotlinOnlyApi
annotation class IntentionallyKotlinOnlyApi(val description: String = "", val reason: ExemptionReason = ExemptionReason.OTHER)(source)
Exempts the annotated function from Kotlin-only API without JvmSynthetic. On a class, it covers every function in the class.
Apply it when Java sources must see the Kotlin-only function. Otherwise, hide it with @JvmSynthetic, or add a Java-friendly alternative.
Parameters
description
Why the exemption is applied. Can be empty when reason is ExemptionReason.FOR_BACKWARDS_COMPATIBILITY, ExemptionReason.API_DESIGN, or ExemptionReason.FOR_DEPRECATION.