close

open override fun close()

Closes the object and removes all registered listeners. After closing, any function call to this object will throw an IllegalStateException.