Documentation

KDocs

Kotlin docs ?

Just like with Javadoc, KDoc comments start with /** and end with */

Code

Copied off kotlin lang docs

/**
 * A group of *members*.
 *
 * This class has no useful logic; it's just a documentation example.
 *
 * @param T the type of a member in this group.
 * @property name the name of this group.
 * @constructor Creates an empty group.
 */
class Group<T>(val name: String) {
    /**
     * Adds a [member] to this group.
     * @return the new size of the group.
     */
    fun add(member: T): Int { ... }
}

KMP

iOS - apple interop docs

Mind Map

iOS | documentation

References

kotlin lang | docs

kdocs Baeldung