差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 | 上一修订版 两侧同时换到之后的修订记录 | ||
cs:300visitoraccess:private-server [2017/12/04 08:04] liulj [Android 参数设置] |
cs:300visitoraccess:private-server [2018/10/11 07:54] dujiepeng [iOS 参数设置] |
||
---|---|---|---|
行 49: | 行 49: | ||
<code> | <code> | ||
- | HOptions *option = [[HOptions alloc] init]; | + | HDOptions *option = [[HDOptions alloc] init]; |
option.enableDnsConfig = NO; //私有部署必须禁用掉dns | option.enableDnsConfig = NO; //私有部署必须禁用掉dns | ||
option.restServer = @"a1.easemob.com"; // restServer | option.restServer = @"a1.easemob.com"; // restServer | ||
行 56: | 行 56: | ||
option.kefuRestServer = @"https://kefu.easemob.com"; //kefuserver | option.kefuRestServer = @"https://kefu.easemob.com"; //kefuserver | ||
- | HChatClient *client = [HChatClient sharedClient]; | + | HDClient *client = [HDClient sharedClient]; |
- | HError *initError = [client initializeSDKWithOptions:option]; | + | HDError *initError = [client initializeSDKWithOptions:option]; |
</code> | </code> |