I have an enum defined in a Fragment companion object:
enum class Channel {
TAG_FRIENDS, CHALLENGE_INVITE, COMMITMENT_INVITE
}
Normaly I'll access it from another Kotlin class like that:
MyFragment.Companion.Channel.TAG_FRIENDS
How would I access it from a Java class? The Channel enum doesn't seem to be accessable...
Just in case anyone still need this:
Channel.TAG_FRIENDS.getValue()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With