IntentionallyBooleanParameter

annotation class IntentionallyBooleanParameter(val description: String = "", val reason: ExemptionReason = ExemptionReason.OTHER)(source)

Exempts the annotated function or parameter from Boolean parameters in public API.

Apply it when the function name makes the parameter unmistakable, as in setEnabled(enabled: Boolean).

Parameters

description

Properties

Link copied to clipboard
Link copied to clipboard