0
Private val isOpen = false..
Why we use this? Or what is the purpose of this in Kotlin ? Anyone know.please tell me ASAP. Waiting.
9 Antworten
0
This is looking like as a Boolean is declared to check the status whether it is open or not.
+ 3
It is similar to status of something that is not going to change. It is because 'val' variables are immutable. So isOpen will remain false throughout the code.
0
It is use in RecyclerViewAdapter.
Still it means the same?
0
As I do not have the complete code, all I can say by just analysing the coding style and I think it is checking whether something has been opened or not.
0
Thank you. ✌
0
You're welcome
0
Its var* sorry typing mistake.
0
So it must be as I have suggested above or share your code for specific answer.
0
I got it. Thank u