Suneet Agrawal
1 min readSep 25, 2018

--

mina medhat thank you for your response.

As we cannot pass any arguments while getting any property value, we need to write our own method to get the Manager Instance and pass the argument as a parameter to it.

fun getManagerInstance(value: Int): EventManager {
if (instance == null) {
instance = EventManager(value)
}

return instance
}

--

--

No responses yet