Unity and Windows API reference
|
Public 成员函数 | |
ImageBody (string localPath, string displayName, long fileSize=0, bool original=false, double width=0, double height=0) | |
Public 属性 | |
string | ThumbnailLocalPath |
string | ThumbnaiRemotePath |
string | ThumbnaiSecret |
double | Height |
double | Width |
bool | Original |
DownLoadStatus | ThumbnaiDownStatus = DownLoadStatus.PENDING |
额外继承的成员函数 |
图片消息体。
ChatSDK.MessageBody.ImageBody.ImageBody | ( | string | localPath, |
string | displayName, | ||
long | fileSize = 0 , |
||
bool | original = false , |
||
double | width = 0 , |
||
double | height = 0 |
||
) |
图片消息体构造方法。
localPath | 图片的本地路径。 |
displayName | 图片的显示名称。 |
fileSize | 图片大小,单位为字节。 |
original | 是否发送原图。 |
width | 图片宽度,单位为像素。 |
height | 图片高度,单位为像素。 |
string ChatSDK.MessageBody.ImageBody.ThumbnailLocalPath |
缩略图的本地路径。
string ChatSDK.MessageBody.ImageBody.ThumbnaiRemotePath |
缩略图在服务器上的保存路径。
string ChatSDK.MessageBody.ImageBody.ThumbnaiSecret |
缩略图的下载密钥。
double ChatSDK.MessageBody.ImageBody.Height |
图片文件的宽度和高度,单位为像素。
bool ChatSDK.MessageBody.ImageBody.Original |
设置发送图片时是否发送原图。
true
:发送原图。false
:若图片小于 100 KB,发送原图;若图片大于等于 100 KB, 发送压缩后的图片。 对于 Windows、Unity Mac 或 Unity Windows,SDK 暂不支持压缩功能,只支持原图发送。 DownLoadStatus ChatSDK.MessageBody.ImageBody.ThumbnaiDownStatus = DownLoadStatus.PENDING |
图片的下载状态。