| | |
| | | |
| | | typedef void (^sendResultBlock)(NSDictionary *result); |
| | | |
| | | // 发送消息回调是否发送成功 |
| | | typedef void(^QQApiInterfaceSendMessageResultBlock)(QQApiSendResultCode sendResultCode, NSString *message); |
| | | |
| | | /** |
| | | \brief 处理来至QQ的请求及响应的回调协议 |
| | | */ |
| | |
| | | \return 请求发送结果码 |
| | | */ |
| | | + (QQApiSendResultCode)sendMessageToQQAvatarWithReq:(QQBaseReq*)req; |
| | | |
| | | |
| | | + (QQApiSendResultCode)sendMessageToQQAuthWithReq:(QQBaseReq*)req; |
| | | |
| | | |
| | | /** |
| | | 向手Q发起绑群请求 |
| | | \param req 请求的内容 |
| | | \param resultBlock 请求回调 |
| | | */ |
| | | + (void)sendThirdAppBindGroupReq:(QQBaseReq *)req resultBlock:(sendResultBlock)resultBlock; |
| | | |
| | | /** |
| | | 向手Q发起加群请求 |
| | | \param req 请求的内容 |
| | | \param resultBlock 请求回调 |
| | | */ |
| | | + (void)sendThirdAppJoinGroupReq:(QQBaseReq *)req resultBlock:(sendResultBlock)resultBlock; |
| | | |
| | | /** |
| | | 向手Q发起解绑群请求 |
| | | \param req 请求的内容 |
| | | \param resultBlock 请求回调 |
| | | */ |
| | | + (void)sendThirdAppUnBindGroupReq:(QQBaseReq *)req resultBlock:(sendResultBlock)resultBlock; |
| | | |
| | | /** |
| | | 向手Q发起创建QQ频道的请求 |
| | | \param req 请求的内容 |
| | | \param resultBlock 回调发送结果 |
| | | \return void |
| | | */ |
| | | + (void)sendMessageToCreateQQGroupProWithMessageRequest:(SendMessageToQQReq *)messageRequest sendResultBlock:(QQApiInterfaceSendMessageResultBlock)sendResultBlock; |
| | | |
| | | |
| | | /** |
| | | 向手Q发起加入QQ频道的请求 |
| | | \param req 请求的内容 |
| | | \param resultBlock 回调发送结果 |
| | | \return void |
| | | */ |
| | | + (void)sendMessageToJoinQQGroupProWithMessageRequest:(SendMessageToQQReq *)messageRequest sendResultBlock:(QQApiInterfaceSendMessageResultBlock)sendResultBlock; |
| | | |
| | | |
| | | /** |
| | | 向手Q发起查询QQ频道openID的请求 |
| | | \param req 请求的内容 |
| | | \param resultBlock 请求回调 |
| | | */ |
| | | + (void)sendQueryQQGroupProInfo:(QQBaseReq *)req resultBlock:(sendResultBlock)resultBlock; |
| | | |
| | | /** |
| | | 向手Q发起组图分享到表情收藏 |
| | |
| | | \return iPhoneTIM下载地址 |
| | | */ |
| | | + (NSString *)getTIMInstallUrl; |
| | | |
| | | #pragma mark - Log |
| | | |
| | | /*! @brief 调用此函数可以导出QQSDK的Log到第三方中,用于定位问题 |
| | | |
| | | 注意1:SDK会强引用这个block,注意不要导致内存泄漏,注意不要导致内存泄漏 |
| | | 注意2:调用过一次startLog by block之后,如果再调用一次任意方式的startLoad,会释放上一次logBlock,不再回调上一个logBlock |
| | | * |
| | | * @param logBlock 打印log的回调block |
| | | */ |
| | | + (void)startLogWithBlock:(QQApiLogBolock)logBlock; |
| | | |
| | | ///停止回调打印 |
| | | + (void)stopLog; |
| | | |
| | | ///设置打印日志到文件开关on/off,如果不设置,默认不打印到文件 |
| | | + (void)setSwitchPrintLogToFile:(BOOL)on; |
| | | |
| | | ///日志文件目录 |
| | | + (NSString *)getLogFilePath; |
| | | |
| | | @end |