Commit acac7910 by zhangyunjie

1.2.0.2

parent 3297fba3
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'OffcnIMSDKiOS' s.name = 'OffcnIMSDKiOS'
s.version = '1.2.0.1' s.version = '1.2.0.2'
s.summary = 'OffcnIMSDKiOS.' s.summary = 'OffcnIMSDKiOS.'
s.description = <<-DESC s.description = <<-DESC
......
...@@ -9,7 +9,15 @@ ...@@ -9,7 +9,15 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "OffcnIMModel.h" #import "OffcnIMModel.h"
static const NSString *OffcnIMSDKiOSVersion = @"1.2.0.1"; static const NSString *OffcnIMSDKiOSVersion = @"1.2.0.2";
//聊天详情头像点击事件通知
#define kOffcnIMChatInfoHeadIconClickNotification @"kOffcnIMChatInfoHeadIconClickNotification"
typedef NS_ENUM(NSUInteger, OffcnIMChatInfoType) {
OffcnIMChatInfoType_imChat = 1, //im聊天
OffcnIMChatInfoType_privateChat, //私聊
};
typedef NS_ENUM(NSUInteger, OffcnIMSDKReachabilityStatus) { typedef NS_ENUM(NSUInteger, OffcnIMSDKReachabilityStatus) {
OffcnIMSDKReachabilityStatusNotReachable = 0, OffcnIMSDKReachabilityStatusNotReachable = 0,
...@@ -37,11 +45,17 @@ typedef NS_ENUM(NSUInteger, OffcnSDKType) { ...@@ -37,11 +45,17 @@ typedef NS_ENUM(NSUInteger, OffcnSDKType) {
//网络监听回调 //网络监听回调
typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus status); typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus status);
//聊天详情头像点击事件回调
typedef void(^OffcnIMChatInfoHeadIconClickCallBack)(OffcnIMChatInfoType event,NSString *userID);
@interface OffcnIMSDKiOS : NSObject @interface OffcnIMSDKiOS : NSObject
//返回单例对象 //返回单例对象
+ (OffcnIMSDKiOS *)defaultService; + (OffcnIMSDKiOS *)defaultService;
// 后台所有下载任务完成回调
@property (nonatomic, copy) void (^backgroundSessionCompletionHandler)(void);
//是否选用测试环境 //是否选用测试环境
@property (nonatomic, assign) BOOL isTest; @property (nonatomic, assign) BOOL isTest;
...@@ -52,6 +66,10 @@ typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus ...@@ -52,6 +66,10 @@ typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus
@property (nonatomic, assign) OffcnIMSDKReachabilityStatus OffcnReachabilityStatus; @property (nonatomic, assign) OffcnIMSDKReachabilityStatus OffcnReachabilityStatus;
@property (nonatomic, copy) OffcnIMSDKReachabilityStatusCallBack reachabilityStatusCallBack; @property (nonatomic, copy) OffcnIMSDKReachabilityStatusCallBack reachabilityStatusCallBack;
//聊天详情头像点击事件回调
@property (nonatomic, copy) OffcnIMChatInfoHeadIconClickCallBack chatInfoHeadIconClickCallBack;
/// 启动SDK /// 启动SDK
/// @param isTest 是否选用测试环境 /// @param isTest 是否选用测试环境
...@@ -180,4 +198,8 @@ typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus ...@@ -180,4 +198,8 @@ typedef void(^OffcnIMSDKReachabilityStatusCallBack)(OffcnIMSDKReachabilityStatus
/// @param progressPercent 进度回调 /// @param progressPercent 进度回调
/// @param tidStrFinished 发送消息本地tid回调 /// @param tidStrFinished 发送消息本地tid回调
-(void)sendPrivateMsgWithMsg_to:(NSString *)msg_to room_num:(NSString *)room_num msg_type:(OffcnSDKMsgType)msg_type text:(NSMutableAttributedString *)text filePath:(NSString *)filePath ext:(NSString *)ext extIndex:(NSString *)extIndex repeatSend_tid:(NSString *)repeatSend_tid Finished:(void(^)(NSString *extIndex,BOOL success, id response, NSMutableArray *content, NSString *errorMessage))finished ProgressPercent:(void(^)(NSString *extIndex, NSString *filePath, float percent))progressPercent tidStrFinished:(void(^)(NSString *extIndex,NSString *tidString))tidStrFinished; -(void)sendPrivateMsgWithMsg_to:(NSString *)msg_to room_num:(NSString *)room_num msg_type:(OffcnSDKMsgType)msg_type text:(NSMutableAttributedString *)text filePath:(NSString *)filePath ext:(NSString *)ext extIndex:(NSString *)extIndex repeatSend_tid:(NSString *)repeatSend_tid Finished:(void(^)(NSString *extIndex,BOOL success, id response, NSMutableArray *content, NSString *errorMessage))finished ProgressPercent:(void(^)(NSString *extIndex, NSString *filePath, float percent))progressPercent tidStrFinished:(void(^)(NSString *extIndex,NSString *tidString))tidStrFinished;
//清除本地关于下载文件的缓存
- (void)clearLocalCache;
@end @end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment