AgoraRtmMessage Class Reference
Attributes of a peer-to-peer or channel text message.
Agora RTM message type. See AgoraRtmMessageType. Text messages only.
@property (nonatomic, assign, readonly) AgoraRtmMessageType type
Agora RTM message content. Must not exceed 32 KB in length.
@property (nonatomic, copy, nonnull) NSString *text
The timestamp (ms) of when the messaging server receives this message.
@property (nonatomic, assign, readonly) long long serverReceivedTs
- You can infer from the returned timestamp the approximate time as to when this message was sent.
- The returned timestamp is on a millisecond time-scale. It is for demonstration purposes only, not for strict ordering of messages.
Whether this message has been cached on the server (Applies to peer-to-peer message only).
@property (nonatomic, assign, readonly) BOOL isOfflineMessage
- YES: This message has been cached on the server (the server caches this message and resends it to the receiver when he/she is back online).
- NO: (Default) This message has not been cached on the server.