NIMSDK-iOS
载入中...
搜索中...
未找到
NIMSession类 参考

#import <NIMSession.h>

类 NIMSession 继承关系图:

类方法

(instancetype) + session:type:
 
(instancetype) + sessionForQChat:qchatServerId:
 
(nullable instancetype) + sessionFromString:
 

属性

NSString * sessionId
 
NIMSessionType sessionType
 
unsigned long long qchatChannelId
 
unsigned long long qchatServerId
 

详细描述

会话对象

函数文档

◆ session:type:

+ (instancetype) session: (NSString *)  sessionId
type: (NIMSessionType sessionType 

通过id和type构造会话对象

参数
sessionId会话ID
sessionType会话类型
返回
会话对象实例

◆ sessionForQChat:qchatServerId:

+ (instancetype) sessionForQChat: (long long)  qchatChannelId
qchatServerId: (long long)  qchatServerId 

通过圈组频道ID和圈组服务器ID构造会话对象

参数
qchatChannelId圈组频道ID
qchatServerId圈组服务器ID
返回
会话对象实例

◆ sessionFromString:

+ (nullable instancetype) sessionFromString: (NSString *)  sessionString

属性说明

◆ qchatChannelId

- (unsigned long long) qchatChannelId
readnonatomicassign

圈组频道ID

◆ qchatServerId

- (unsigned long long) qchatServerId
readnonatomicassign

圈组服务器ID

◆ sessionId

- (NSString*) sessionId
readnonatomiccopy

会话ID,如果当前session为team,则sessionId为teamId,如果是P2P则为对方帐号

◆ sessionType

- (NIMSessionType) sessionType
readnonatomicassign

会话类型,当前仅支持P2P,Team和Chatroom


该类的文档由以下文件生成: