Join Slack
Powered by
Why in Kotlin I don't need getMenuInflater?
# android
m
Michael
10/20/2020, 2:02 PM
Why in Kotlin I don't need getMenuInflater?
j
James
10/20/2020, 2:18 PM
Referring to a property by name is the same as using a getter in kotlin. See:
https://kotlinlang.org/docs/reference/properties.html
(I'm new to Kotlin too, so if I've missed something, let me know!)
👍 2
s
Sulav Timsina
10/20/2020, 2:20 PM
menuInflater
does the exact same thing as
getMenuInflater
👍 3
m
Michael
10/20/2020, 3:30 PM
@James
@Sulav Timsina
Thanks for all!
Open in Slack
Previous
Next