|
Chat SDK for Unity and Windows v1.3.2
|
Public 成员函数 | |
| ImageBody (string localPath, string displayName, long fileSize=0, bool original=false, double width=0, double height=0) | |
Public 属性 | |
| string | ThumbnailLocalPath |
| string | ThumbnailRemotePath |
| string | ThumbnailSecret |
| DownLoadStatus | ThumbnailDownStatus = DownLoadStatus.PENDING |
| double | Height |
| double | Width |
| double | ThumbnailHeight |
| double | ThumbnailWidth |
| bool | Original |
额外继承的成员函数 |
图片消息体。
| AgoraChat.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 AgoraChat.MessageBody.ImageBody.ThumbnailLocalPath |
缩略图的本地路径。
| string AgoraChat.MessageBody.ImageBody.ThumbnailRemotePath |
缩略图在服务器上的保存路径。
| string AgoraChat.MessageBody.ImageBody.ThumbnailSecret |
缩略图的下载密钥。
| DownLoadStatus AgoraChat.MessageBody.ImageBody.ThumbnailDownStatus = DownLoadStatus.PENDING |
缩略图的下载状态。
| double AgoraChat.MessageBody.ImageBody.Height |
图片文件的宽度和高度,单位为像素。
| double AgoraChat.MessageBody.ImageBody.ThumbnailHeight |
缩略图的宽度和高度,单位为像素。
| bool AgoraChat.MessageBody.ImageBody.Original |
是否发送原图。
true: 发送原图和缩略图。false: 若图片小于 100 KB,发送原图和缩略图;若图片大于等于 100 KB, 发送压缩后的图片和压缩后图片的缩略图。