When extension functions alone aren’t enough.

Photo by Anders Jildén on Unsplash
sealed class Feature
object SomeFeature: Feature()
object SomeOtherFeature : Feature()
interface AppFeatures {
fun isEnabled(feature: Feature): Boolean
}
fun AppFeatures.isDisabled(feature: Feature): Boolean =
isEnabled(feature).not()



Getting Feedback from the View



@Uxmal, Mexico

Aidan Mcwilliams

Android developer and Kotlin enthusiast.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store