uli
02/24/2022, 5:40 PMinterface MySDK { and I have a global factory method fun MySdk() how do I refernce the method from the interface KDoc?
The obvious approach is ambigouos and dokka chooses to resolves to the interface, not the method.
/**
* An implementation of this interface can be instantiated by calling the factory method [MySdk]()
*/Ignat Beresnev
02/24/2022, 7:00 PMNames of functions, properties and local variables start with a lowercase letter and use camel case and no underscores:There should be no problem then Even IDEA will navigate you to the interface declaration instead of the method if you use
Go to declaration , not just dokka
If you have interface MySdk and fun MySdk() in different packages, then using full path to the function should help, such as [com.company.foo.bar.MySdk] . If they're in the same package, not sure what to do..rnett
02/24/2022, 7:37 PMfun <ClassName>(...) are a fairly common pattern.uli
02/24/2022, 8:09 PMuli
02/24/2022, 8:10 PMDavid Hamilton
03/04/2022, 5:10 PMinvoke() function definition in the companion object?