NIMMessageReceipt Class Reference
Inherits from | NSObject |
---|---|
Declared in | NIMMessageReceipt.h |
session
Session that contains read receipts
@property (nullable, nonatomic, copy, readonly) NIMSession *session
Discussion
Session that contains read receipts
Declared In
NIMMessageReceipt.h
timestamp
Timestamp
@property (nonatomic, assign, readonly) NSTimeInterval timestamp
Discussion
Timestamp
To send a read receipt, this field needs to be set to the timestamp of the last message in the current session. To receive a read receipt, this field indicates that all messages before this timestamp have been read. This field supports P2P sessions
Declared In
NIMMessageReceipt.h
messageId
Message ID
@property (nonatomic, copy, readonly) NSString *messageId
Discussion
Message ID
The property is only valid for Team sessions, indicating the message with this ID that has been read
Declared In
NIMMessageReceipt.h
teamReceiptInfo
Group read receipt
@property (nonatomic, strong, readonly) NIMTeamMessageReceipt *teamReceiptInfo
Discussion
Group read receipt
Declared In
NIMMessageReceipt.h
– initWithMessage:
Create a read receipt using the last message
- (instancetype)initWithMessage:(NIMMessage *)message
Parameters
message |
the last message in the session |
---|
Return Value
read receipt instance
Discussion
Create a read receipt using the last message
Declared In
NIMMessageReceipt.h