BMXImageAttachment
类 BMXImageAttachment
-
java.lang.Object
-
- BMXBaseObject
-
- im.floo.floolib.BMXMessageAttachment
-
- im.floo.floolib.BMXFileAttachment
-
- im.floo.floolib.BMXImageAttachment
-
public class BMXImageAttachment extends BMXFileAttachment
图片消息附件
-
-
嵌套类概要
-
从类继承的嵌套类/接口 im.floo.floolib.BMXMessageAttachment
BMXMessageAttachment.DownloadStatus, BMXMessageAttachment.Size, BMXMessageAttachment.Type
-
-
构造器概要
构造器
限定符 构造器和说明 protected
BMXImageAttachment(long cPtr, boolean cMemoryOwn)
BMXImageAttachment(java.lang.String path, BMXMessageAttachment.Size size)
BMXImageAttachment(java.lang.String path, BMXMessageAttachment.Size size, java.lang.String displayName)
构造函数,构建发送图片消息附件BMXImageAttachment(java.lang.String ratelUrl, BMXMessageAttachment.Size size, java.lang.String displayName, long fileLength)
构造函数,构建接收图片消息附件 -
方法概要
所有方法 静态方法 实例方法 具体方法
限定符和类型 方法和说明 BMXMessageAttachment
clone()
克隆函数void
delete()
static BMXImageAttachment
dynamic_cast(BMXMessageAttachment attachment)
protected void
finalize()
protected static long
getCPtr(BMXImageAttachment obj)
void
setThumbnail(java.lang.String path)
设置发送图片消息缩略图BMXMessageAttachment.Size
size()
图片大小BMXMessageAttachment.DownloadStatus
thumbnailDownloadStatus()
缩略图下载状态java.lang.String
thumbnailPath()
缩略图本地路径java.lang.String
thumbnailUrl()
BMXMessageAttachment.Type
type()
返回图片附件类型-
从类继承的方法 im.floo.floolib.BMXFileAttachment
displayName, downloadStatus, fileLength, getCPtr, path, ratelUrl, url
-
从类继承的方法 im.floo.floolib.BMXMessageAttachment
getCPtr
-
从类继承的方法 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
构造器详细资料
-
BMXImageAttachment
protected BMXImageAttachment(long cPtr, boolean cMemoryOwn)
-
BMXImageAttachment
public BMXImageAttachment(java.lang.String path, BMXMessageAttachment.Size size, java.lang.String displayName)
构造函数,构建发送图片消息附件
参数:
path
- 本地路径size
- 图片的大小,宽度和高度displayName
- 展示名 -
BMXImageAttachment
public BMXImageAttachment(java.lang.String path, BMXMessageAttachment.Size size)
-
BMXImageAttachment
public BMXImageAttachment(java.lang.String ratelUrl, BMXMessageAttachment.Size size, java.lang.String displayName, long fileLength)
构造函数,构建接收图片消息附件
参数:
ratelUrl
- ratel服务器地址size
- 图片的大小,宽度和高度displayName
- 展示名fileLength
- 文件大小
-
-
方法详细资料
-
getCPtr
protected static long getCPtr(BMXImageAttachment obj)
-
finalize
protected void finalize()
覆盖:
finalize
在类中BMXFileAttachment
-
delete
public void delete()
覆盖:
delete
在类中BMXFileAttachment
-
type
public BMXMessageAttachment.Type type()
返回图片附件类型
覆盖:
type
在类中BMXFileAttachment
返回:
Type
-
clone
public BMXMessageAttachment clone()
克隆函数
覆盖:
clone
在类中BMXFileAttachment
返回:
BMXMessageAttachmentPtr
-
size
public BMXMessageAttachment.Size size()
图片大小
返回:
Size
-
thumbnailUrl
public java.lang.String thumbnailUrl()
-
setThumbnail
public void setThumbnail(java.lang.String path)
设置发送图片消息缩略图
参数:
path
- 本地路径 -
thumbnailPath
public java.lang.String thumbnailPath()
缩略图本地路径
返回:
std::string
-
thumbnailDownloadStatus
public BMXMessageAttachment.DownloadStatus thumbnailDownloadStatus()
缩略图下载状态
返回:
DownloadStatus
-
dynamic_cast
public static BMXImageAttachment dynamic_cast(BMXMessageAttachment attachment)
-
-
文档反馈
(如有产品使用问题,请 提交工单)