Koltin, Sealed Classes In Kotlin, Android.
Modeling Permissions: Sealed classes can effectively represent different permission states (granted, denied, not requested) in your Android application. Kotlin sealed class PermissionState { object Granted : PermissionState() object Denied : PermissionState() object NotRequested : PermissionState()