Chat SDK for Unity and Windows v1.2.0
|
Public Member Functions | |
ImageBody (string localPath, string displayName, long fileSize=0, bool original=false, double width=0, double height=0) | |
Public Attributes | |
string | ThumbnailLocalPath |
string | ThumbnailRemotePath |
string | ThumbnailSecret |
DownLoadStatus | ThumbnailDownStatus = DownLoadStatus.PENDING |
double | Height |
double | Width |
bool | Original |
Additional Inherited Members |
The image message body.
AgoraChat.MessageBody.ImageBody.ImageBody | ( | string | localPath, |
string | displayName, | ||
long | fileSize = 0 , |
||
bool | original = false , |
||
double | width = 0 , |
||
double | height = 0 |
||
) |
The image message body constructor.
localPath | The local path of the image. |
displayName | The display name of the image. |
fileSize | The image size in bytes. |
original | Whether to send the original image. |
width | The image width in pixels. |
Height | The image height in pixels. |
string AgoraChat.MessageBody.ImageBody.ThumbnailLocalPath |
The local path of the thumbnail.
string AgoraChat.MessageBody.ImageBody.ThumbnailRemotePath |
The URL where the thumbnail is located on the server.
string AgoraChat.MessageBody.ImageBody.ThumbnailSecret |
The secret for downloading the thumbnail.
DownLoadStatus AgoraChat.MessageBody.ImageBody.ThumbnailDownStatus = DownLoadStatus.PENDING |
The status for downloading the thumbnail.
double AgoraChat.MessageBody.ImageBody.Height |
The width and height of the image file, in pixels.
bool AgoraChat.MessageBody.ImageBody.Original |
Whether to send the original image.
true
: Yes.false
: No. If the image is smaller than 100 KB, the SDK sends the original image and its thumbnail. If the image is equal to or greater than 100 KB, the SDK will compress it before sending the compressed image and the thumbnail of the compressed image.