Skip to main content
Version: SDK-5.10.2

OnNotification

public NotificationEventHandler OnNotification;

전달인자

ValueTypeDescription
argsNotificationEventArgs뒤끝 콘솔 > 뒤끝챗 > 공지 관리에서 보낸 메세지에 대한 정보

NotificationEventArgs

ValueTypeDescription
SubjectString콘솔에서 보낸 공지 메시지의 발송명
MessageString콘솔에서 보낸 공지 메시지의 발송 내용

설명

뒤끝 콘솔 > 뒤끝챗 > 공지 관리 > 공지 발송을 통해 발송된 공지 메세지를 콜백하는 핸들러입니다.

이벤트가 호출되기 위해서는 반드시 메시지 송수신 함수가 호출되어야 합니다.

Example

// 첫 번째 방법
Backend.Chat.OnNotification = (NotificationEventArgs args) =>
{
Debug.Log(string.Format("제목 : {0} / 내용 : {1}", args.Subject, args.Message));
};

// 두 번째 방법
Backend.Chat.OnNotification += (args) => {
// 첫 번째 방법과 동일한 로직
}