notifyResponseReceived static method

void notifyResponseReceived(
  1. int engineId,
  2. String requestId,
  3. String responseContent,
  4. String bodyData,
)

network notification, when a network request response received

Implementation

static void notifyResponseReceived(
  int engineId,
  String requestId,
  String responseContent,
  String bodyData,
) {
  var contentPtr = responseContent.toNativeUtf16();
  var requestIdPtr = requestId.toNativeUtf16();
  var extraPtr = bodyData.toNativeUtf16();
  _BridgeFFIManager.instance.notifyNetworkEvent(
    engineId,
    requestIdPtr,
    NetworkEventType.responseReceived.index,
    contentPtr,
    extraPtr,
  );
  free(requestIdPtr);
  free(contentPtr);
  free(extraPtr);
}