onUserNotificationEvent method

void onUserNotificationEvent(
  1. TencentCloudChatComponentsEnum component,
  2. 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);
  }
}