This method of the Connection class is called before a connection starts. The parameters to be used in the pending connection are supplied as input parameters and can be changed before the method returns. This method may return a request that the pending connection be canceled.
public void addOnWillConnect(ConnectionEventHandler handler);
handler | The event handler. |