Join Slack
Powered by
top level methods are useful when writing Util cla...
# android
p
pgreze
06/21/2018, 3:36 AM
top level methods are useful when writing Util classes. Example:
https://github.com/TonnyL/Light/blob/master/light/src/main/java/io/github/tonnyl/light/Light.kt
pgreze
06/21/2018, 3:37 AM
Notice the
@file:JvmName("Light")
allowing to use the Java friendly
Light.func()
instead of
LightKt.func()
Open in Slack
Previous
Next