Join Slack
Communities
Powered by
You should use a companion object, and use the dot...
# android
j
jstuyts-squins
10/17/2017, 10:03 AM
You should use a companion object, and use the dot to access the property:
Copy code
class MainActivity : Activity() { companion object { val MSG = "MESSAGE" } }
Open in Slack
Previous
Next