From 7acec95dedc4b1175a8d1fc5a123f5d381d276f8 Mon Sep 17 00:00:00 2001 From: lpw Date: Mon, 14 Mar 2022 09:22:20 +0800 Subject: [PATCH] 2.5.0 --- frameworks/TencentOpenAPI.framework/Headers/QQApiInterface.h | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 59 insertions(+), 1 deletions(-) diff --git a/frameworks/TencentOpenAPI.framework/Headers/QQApiInterface.h b/frameworks/TencentOpenAPI.framework/Headers/QQApiInterface.h index 339d25f..f77f78d 100644 --- a/frameworks/TencentOpenAPI.framework/Headers/QQApiInterface.h +++ b/frameworks/TencentOpenAPI.framework/Headers/QQApiInterface.h @@ -11,6 +11,9 @@ typedef void (^sendResultBlock)(NSDictionary *result); +// 发送消息回调是否发送成功 +typedef void(^QQApiInterfaceSendMessageResultBlock)(QQApiSendResultCode sendResultCode, NSString *message); + /** \brief 处理来至QQ的请求及响应的回调协议 */ @@ -76,6 +79,56 @@ \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发起组图分享到表情收藏 @@ -157,6 +210,7 @@ + (NSString *)getTIMInstallUrl; #pragma mark - Log + /*! @brief 调用此函数可以导出QQSDK的Log到第三方中,用于定位问题 注意1:SDK会强引用这个block,注意不要导致内存泄漏,注意不要导致内存泄漏 @@ -165,10 +219,14 @@ * @param logBlock 打印log的回调block */ + (void)startLogWithBlock:(QQApiLogBolock)logBlock; + ///停止回调打印 + (void)stopLog; + ///设置打印日志到文件开关on/off,如果不设置,默认不打印到文件 + (void)setSwitchPrintLogToFile:(BOOL)on; + ///日志文件目录 -+ (NSString*)getLogFilePath; ++ (NSString *)getLogFilePath; + @end -- Gitblit v1.8.0