10

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?

1 Answer 1

16

Just change # to . and it will work correctly.

/** * @see com.myapp.view.fragment.PlaybackControlFragment.onPlaybackStateChanged */ 
Sign up to request clarification or add additional context in comments.

6 Comments

But what about method overloading?
What do you mean @RomanMitasov? You want to refer to a parent function from the child class?
Overloading it's when there are several methods with the same name and within the same scope but with different parameters
Thanks for explaining what overloading means 🙂 I'm asking this question because I don't understand how your question relates to my answer?
How to refer overloaded method in @see?
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.