#include<HIVE_SDK_Plugin/HIVE_CPP.h>usingnamespacehive;Chat::connect([=](ResultAPIconst&result){if(result.isSuccess()){// API Call Success}});
importcom.hive.Chat;importcom.hive.ResultAPI;Chat.connect(object:Chat.ConnectListener{overridefunonResult(result:ResultAPI){if(result.isSuccess){// API Call Success}}})
importcom.hive.Chat;Chat.connect(result->{if(result.isSuccess()){// API Call Success}});
importHIVEServiceChatInterface.connect{resultinifresult.isSuccess{// API Call Success}}
usinghive;Chat.reconnect((ResultAPIresult,List<String>channelIds,List<String>failChannelIds)=>{if(result.isSuccess()){// API Call Success}});
#include"HiveChat.h"FHiveChat::Reconnect(FHiveChatOnReconnectDelegate::CreateLambda([this](constFHiveResultAPI&Result,constTArray<FString>&ChannelIds,constTArray<FString>&FailChannelIds){if(Result.IsSuccess()){// API 调用成功}}));
#include<HIVE_SDK_Plugin/HIVE_CPP.h>usingnamespacehive;Chat::disconnect([=](ResultAPIconst&result){if(result.isSuccess()){// API Call Success}});
importcom.hive.Chat;importcom.hive.ResultAPI;Chat.disconnect(object:Chat.DisconnectListener{overridefunonResult(result:ResultAPI){if(result.isSuccess){// API 调用成功}}})
importcom.hive.Chat;Chat.disconnect(result->{if(result.isSuccess()){// API Call Success}});
importHIVEServiceChatInterface.disconnect(result){ifresult.isSuccess{// API Call Success}}
#import "HIVEService.h"[HiveChatdisconnectWithHandler:^(HIVEResultAPI*result){if(result.isSuccess){// API 调用成功}}];