public class ImageAttachment extends FileAttachment
displayName, extension, forceUpload, md5, nosTokenSceneKey, path, size, url
构造器和说明 |
---|
ImageAttachment() |
ImageAttachment(java.lang.String attach) |
限定符和类型 | 方法和说明 |
---|---|
int |
getHeight()
获取图片高度
|
java.lang.String |
getThumbUrl()
获取缩略图 thumbUrl
|
int |
getWidth()
获取图片的宽度
|
boolean |
isHdImage() |
protected void |
load(JSONObject json) |
protected void |
save(JSONObject json) |
void |
setHeight(int height)
设置图片高度
|
void |
setWidth(int width)
设置图片宽度
|
protected NimStorageType |
storageType() |
getDisplayName, getExpire, getExtension, getFileName, getMd5, getNosTokenSceneKey, getPath, getPathForSave, getSize, getThumbPath, getThumbPathForSave, getUri, getUrl, isForceUpload, setDisplayName, setExtension, setForceUpload, setMd5, setNosTokenSceneKey, setPath, setSize, setUri, setUrl, toJson
public ImageAttachment()
public ImageAttachment(java.lang.String attach)
public int getWidth()
public void setWidth(int width)
width
- 图片宽public int getHeight()
public void setHeight(int height)
height
- 图片高public java.lang.String getThumbUrl()
public boolean isHdImage()
protected NimStorageType storageType()
storageType
在类中 FileAttachment
protected void save(JSONObject json)
save
在类中 FileAttachment
protected void load(JSONObject json)
load
在类中 FileAttachment