onUserNotificationEvent method
void
onUserNotificationEvent(
- TencentCloudChatComponentsEnum component,
- TencentCloudChatUserNotificationEvent event
Implementation
void onUserNotificationEvent(TencentCloudChatComponentsEnum component,
TencentCloudChatUserNotificationEvent event) {
TencentCloudChat.instance.logInstance.console(
componentName: componentName,
logs: json.encode({
"component": component.toString(),
"eventCode": event.eventCode,
"text": event.text,
}),
);
for (final callbacks in callbacksList) {
callbacks.onUserNotificationEvent?.call(component, event);
}
}