void OnLeaveHandler(int id, LEAVE_CHANNEL_ERR errorCode) { string msg = "client onleave id = " + id + " errorCode = " + errorCode; Debug.Log(msg); messageDisplay.AddTextToDisplay(msg, Message.MessageType.Info); }
private static void OnLeaveCallback(int id, LEAVE_CHANNEL_ERR errorCode) { if (channelEventHandlerDic.ContainsKey(id) && channelEventHandlerDic[id].OnLeave != null) { if (AgoraCallbackObject.GetInstance()._CallbackQueue != null) { AgoraCallbackObject.GetInstance()._CallbackQueue.EnQueue(() => { if (channelEventHandlerDic.ContainsKey(id) && channelEventHandlerDic[id].OnLeave != null) { channelEventHandlerDic[id].OnLeave(id, errorCode); } }); } } }
void OnLeaveHandler2(int id, LEAVE_CHANNEL_ERR errorCode) { Debug.Log("client2 OnLeave id = " + id + " error:" + errorCode); }