private static void OnSubscriptionRequestResultCallback(int id, Int64 requestId, PEER_SUBSCRIPTION_STATUS_ERR errorCode) { if (clientEventHandlerHandlerDic.ContainsKey(id) && clientEventHandlerHandlerDic[id].OnSubscriptionRequestResult != null) { if (AgoraCallbackObject.GetInstance()._CallbackQueue != null) { AgoraCallbackObject.GetInstance()._CallbackQueue.EnQueue(() => { if (clientEventHandlerHandlerDic.ContainsKey(id) && clientEventHandlerHandlerDic[id].OnSubscriptionRequestResult != null) { clientEventHandlerHandlerDic[id].OnSubscriptionRequestResult(id, requestId, errorCode); } }); } } }
void OnSubscriptionRequestResultHandler2(int id, Int64 requestId, PEER_SUBSCRIPTION_STATUS_ERR errorCode) { Debug.Log("OnSubscriptionRequestResultHandler requestId = " + requestId); }