activate()
Activates an inactive listener.
Declaration
func activate() throwsDiscussion
If you create an inactive listener using the inactive flag, be sure to activate it before releasing the last reference to the listener. Releasing the last reference to an inactive listener crashes.
If activation fails, the system automatically cancels the listener.