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

Properties

Link copied to clipboard
Link copied to clipboard