NIMSession Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCopying |
Declared in | NIMSession.h |
sessionId
Session ID. If the current session type is team, use teamId as sessionId, and peer account for P2P type
@property (nonatomic, copy, readonly) NSString *sessionId
Discussion
Session ID. If the current session type is team, use teamId as sessionId, and peer account for P2P type
Declared In
NIMSession.h
sessionType
Session type. P2P, team, and chat room are supported
@property (nonatomic, assign, readonly) NIMSessionType sessionType
Discussion
Session type. P2P, team, and chat room are supported
Declared In
NIMSession.h
+ session:type:
Construct a session object using id and type
+ (instancetype)session:(NSString *)sessionId type:(NIMSessionType)sessionType
Parameters
sessionId |
session ID |
---|---|
sessionType |
session type |
Return Value
an instance of the session object
Discussion
Construct a session object using id and type
Declared In
NIMSession.h