用户工具

即时消息接口_ios

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
后一修订版 两侧同时换到之后的修订记录
即时消息接口_ios [2015/02/08 06:09]
gonghuojin [1. 发送IM消息]
即时消息接口_ios [2015/02/08 06:13]
gonghuojin
行 88: 行 88:
  
  
-===== IM能力代理接口 =====+===== IM能力回调接口 =====
  
 ---- ----
行 124: 行 124:
 <code java> ​         <code java> ​        
 /** /**
- *下载IM附件代理 + *函数名: onDownloadFile 
- ​* ​@param reason ​ ​下载IM附件的状态码 + *功  能: 下载附件回调 
- ​* ​@param filePath ​ ​下载IM附件的本地路径 + *参  数: [OUT]data: ​下载结构体UCS_DOWNLOADINFO首指针 
- ​* ​@param msgId  接收到的消息id + ​* ​      [OUT]reason:​ 状态值 
- ​* ​@return void  ​+ *返回值: 无
  */  */
--(void)onDownloadAttached:​ +void (*onDownloadFile)(int reason, UCS_DOWNLOADINFO ​*data);
-(UCSReason*)reason ​withFilePath:​(NSString*)filePath ​ andMsgId:​(NSString*) msgId+
 </​code> ​     ​ </​code> ​     ​
-==== 4. 播放录音结束 ==== 
  
- 
-<code java> ​       
-/** 
- ​*播放语音结束代理 
- * @param ​ 
- * @return void 
- */ 
--(void) onFinishedPlayingVoice 
-</​code> ​       
- 
-==== 5. 停止录音 ==== 
- 
- 
-<code java> ​       ​ 
-/** 
- ​*停止录音代理 
- * @param duration 录制语音的时长 
- * @return void 
- */ 
--(void)onStopVoiceRecord:​ (NSInterger) duration 
-</​code>​ 

页面工具