Inherits io.agora.rtm.RtmMessage.
Public Member Functions | |
abstract long | getSize () |
abstract String | getMediaId () |
abstract void | setThumbnail (byte[] data) |
abstract byte[] | getThumbnail () |
abstract void | setFileName (String fileName) |
abstract String | getFileName () |
abstract void | setWidth (int width) |
abstract int | getWidth () |
abstract void | setHeight (int height) |
abstract int | getHeight () |
abstract void | setThumbnailWidth (int thumbnailWidth) |
abstract int | getThumbnailWidth () |
abstract void | setThumbnailHeight (int thumbnailHeight) |
abstract int | getThumbnailHeight () |
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 an image message.
|
abstract |
Gets the size of the uploaded image.
|
abstract |
Gets the media ID of the uploaded image.
|
abstract |
Sets the thumbnail of the uploaded image.
data | The thumbnail of the uploaded image. |
|
abstract |
Gets the thumbnail data of the uploaded image.
|
abstract |
Sets the filename of the uploaded image.
fileName | The filename of the uploaded image. The total size of thumbnail and fileName must not exceed 32 KB. |
|
abstract |
Gets the filename of the uploaded image.
|
abstract |
Sets the width of the uploaded image.
width | The width of the uploaded image. |
|
abstract |
Gets the width of the uploaded image.
|
abstract |
Sets the height of the uploaded image.
height | The height of the uploaded image. Returns 0 if the SDK does not support the format of the uploaded image. |
|
abstract |
Gets the height of the uploaded image.
|
abstract |
Sets the width of the thumbnail.
thumbnailWidth | the The width of the thumbnail. |
|
abstract |
Gets the width of the thumbnail.
|
abstract |
Sets the height of the thumbnail.
thumbnailHeight | The height of the thumbnail. |
|
abstract |
Gets the height of the thumbnail.
|
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