Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 294
VSB Avatar asked Oct 23 '18 11:10

VSB


Video Answer


1 Answers

Just change # to . and it will work correctly.

/**
 * @see com.myapp.view.fragment.PlaybackControlFragment.onPlaybackStateChanged
 */
like image 194
Bartek Lipinski Avatar answered Nov 10 '22 16:11

Bartek Lipinski