private static void OnSendMessageResultCallback(int id, Int64 messageId, CHANNEL_MESSAGE_ERR_CODE errorCode) { if (channelEventHandlerDic.ContainsKey(id) && channelEventHandlerDic[id].OnSendMessageResult != null) { if (AgoraCallbackObject.GetInstance()._CallbackQueue != null) { AgoraCallbackObject.GetInstance()._CallbackQueue.EnQueue(() => { if (channelEventHandlerDic.ContainsKey(id) && channelEventHandlerDic[id].OnSendMessageResult != null) { channelEventHandlerDic[id].OnSendMessageResult(id, messageId, errorCode); } }); } } }
void OnSendMessageResultHandler(int id, Int64 messageId, CHANNEL_MESSAGE_ERR_CODE errorCode) { Debug.Log("Message: " + id + " " + messageId + " sent status: " + errorCode); }
void OnSendMessageResultHandler1(int id, Int64 messageId, CHANNEL_MESSAGE_ERR_CODE errorCode) { Debug.Log("channel OnSendMessageResultHandler1 messageId = " + messageId + " ,errorCode = " + errorCode); }