NIMSession Class Reference

Inherits from NSObject
Conforms to NSCopying
Declared in NIMSession.h

Overview

会话对象

  sessionId

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

@property (nonatomic, copy, readonly) NSString *sessionId

Discussion

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

Declared In

NIMSession.h

  sessionType

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

@property (nonatomic, assign, readonly) NIMSessionType sessionType

Discussion

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

Declared In

NIMSession.h

+ session:type:

通过id和type构造会话对象

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

Parameters

sessionId

会话ID

sessionType

会话类型

Return Value

会话对象实例

Discussion

通过id和type构造会话对象

Declared In

NIMSession.h