Image in Kotlin Kdoc in Android

635 Views Asked by At

In JavaDoc you can add an image like this:

/**
 * ...The following legend explains these diagrams:
 * <img width="640" height="577" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.png" alt="">
 */
public class Test {
}

How can I achieve the same thing in Kotlin Kdoc?

1

There are 1 best solutions below

0
On BEST ANSWER

If you are looking to see the preview image of the link in Android Studio then @see will load and show it :

 /**
 * @see <img src="https://raw.githubusercontent.com/wiki/ReactiveX/RxJava/images/rx-operators/Completable.png"/>
 */