kotlinjavadoccode-documentationkdoc

Kotlin: How can I reference a method in kDoc using @see?


I used to reference methods in Java Doc like this:

/**
 * @see com.myapp.view.fragment.PlaybackControlFragment#onPlaybackStateChanged
 */

I don't know how to reference same method in kotlin?

The part com.myapp.view.fragment.PlaybackControlFragment is linked however method name is not clickable and link.

What is the right syntax?


Solution

  • Just change # to . and it will work correctly.

    /**
     * @see com.myapp.view.fragment.PlaybackControlFragment.onPlaybackStateChanged
     */