I would like to do something like to control the "invisble state" of a View.
So I have a function that receive the View and there's a optional parameter invisibleType that can be View.INVISIBLE or View.GONE.
I would like to know how can I limit the options of this parameter for these two.
Like fun makeInvisible(view: View, invisibleType: View.INVISIBLE | View.GONE)
Can it be done with Kotlin? Or my best option is create a custom enum or something like that to map the options to View.INVISBLE and View.GONE?