October 2019
Intermediate to advanced
434 pages
11h 54m
English
The @JvmName annotation is part of the Kotlin stdlib. Its purpose is to specify the name of any Java class or method that's generated from the target element. When used at the file level, it can be used to specify the name of the class that's generated for top-level functions and properties in the Kotlin file. In the case of our sayHello() function example, this means we can modify the name of the GreetingFunctionsKt class that's generated.
Read now
Unlock full access