Accepts or rejects a new connection to the listener.
- iOS 11.0+
- macOS 10.8+
- tvOS 11.0+
- watchOS 4.0+
To accept the connection, first configure the connection if desired, then call
resume() on the new connection, then return
To reject the connect, return a value of
false. This causes the connection object to be invalidated.
In this method, you can also set up properties on the connection object, such as its exported object and interfaces. Be sure to call
resume() when you are finished configuring the connection object and are ready for it to receive messages.