# onBind2Success method

1. @override

Future <void> onBind2Success(

1. XMLNode response

)
override

Called by the Bind2 negotiator when Bind2 results are received.

## Implementation

    @override
    Future<void> onBind2Success(XMLNode response) async {
      if (!_requestedEnablement) {
        return;
      }

      final enabled = response.firstTag('enabled', xmlns: carbonsXmlns);
      final cm = attributes.getManagerById<CarbonsManager>(carbonsManager)!;
      if (enabled != null) {
        _log.finest('Successfully enabled Message Carbons inline');
        cm.setEnabled();
      } else {
        _log.warning('Failed to enable Message Carbons inline');
        cm.setDisabled();
      }
    }