Inherits io.agora.rtm.RtmMessage.
Public Member Functions | |
abstract long | getSize () |
abstract String | getMediaId () |
abstract void | setThumbnail (byte[] thumbnail) |
abstract byte[] | getThumbnail () |
abstract void | setFileName (String fileName) |
abstract String | getFileName () |
abstract void | setText (String text) |
abstract String | getText () |
abstract void | setRawMessage (byte[] data) |
abstract void | setRawMessage (byte[] data, String description) |
abstract byte[] | getRawMessage () |
abstract int | getMessageType () |
abstract long | getServerReceivedTs () |
abstract boolean | isOfflineMessage () |
The class for setting and retrieving attributes of a file message.
|
abstract |
Gets the size of the uploaded file.
|
abstract |
Gets the media ID of the uploaded file.
|
abstract |
Sets the thumbnail of the uploaded file.
thumbnail | The thumbnail of the uploaded file. Must be binary data. The total size of thumbnail and fileName must not exceed 32 KB. |
|
abstract |
Gets the thumbnail of the uploaded file.
|
abstract |
Sets the name of the uploaded file.
fileName | The name of the uploaded file. The total size of thumbnail and fileName must not exceed 32 KB. |
|
abstract |
Gets the name of the uploaded file.
|
abstractinherited |
Sets the content of the text message or the text description of the raw message.
Note The maximum length is 32 KB.
text | The content of the text message or the text description of the raw message. |
|
abstractinherited |
Retrieves the content of the text message or the text description of the raw message.
|
abstractinherited |
Sets the payload of the raw message.
Note You can set a brief text description of the raw message at a later point using the setText method, but please ensure that the size of the raw message and the description combined does not exceed 32 KB.
data | The payload of the raw message. Must not exceed 32 KB in length. |
|
abstractinherited |
Sets the payload and text description of the raw message.
Note You can set description
as "" and add a brief text description of the raw message at a later point using the setText method, but please ensure that the size of the raw message and the description combined does not exceed 32 KB.
data | The payload of the raw message. Must not exceed 32 KB in length. |
description | A brief text description of the raw message. If you set a text description, ensure that the size of the raw message and the description combined does not exceed 32 KB. |
|
abstractinherited |
Retrieves the payload of the raw message.
|
abstractinherited |
Retrieves the message type.
|
abstractinherited |
Allows the receiver to retrieve the timestamp of when the messaging server receives this message.
Note
|
abstractinherited |
Allows the receiver to check whether this message has been cached on the server (Applies to peer-to-peer message only).
Note