notifyResponseReceived static method
void
notifyResponseReceived()
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);
}