onNativeExpress method
信息流事件回调
Implementation
void onNativeExpress(IosZjEvent event) {
int id = event.viewId;
if (_nativeExpressListenerMap.containsKey(id)) {
Function(IosZjEvent)? listener = _nativeExpressListenerMap[id];
listener?.call(event);
if (event.action == IosZjEventAction.onAdError ||
event.action == IosZjEventAction.onAdClose) {
_nativeExpressListenerMap.remove(id);
}
}
}