1 min readJul 14, 2020
Hi Houssem, it really depends on the use case, whether you need this functionality or not.
The idea is that you ensure that only one view will be able to trigger its click, so you are not only disabling the multi-clicks on the specific view but for all views with this listener simultaneously (maybe the user accidentally is clicking 3 buttons at once 😂, can happen) and that's why it's static.
If you don't need this, then of course it should then be a private variable. 👍