BMXFileAttachment Class Reference#
Inherits from BMXMessageAttachment :
BMXBaseObject :
NSObject
Declared in floo_proxy.h
Overview#
@interface 消息文件附件
Class Methods#
dynamicCastWithAttachment:#
消息附件强制转换为文件附件
+ (BMXFileAttachment )dynamicCastWithAttachment:(BMXMessageAttachment )attachment
Parameters#
attachment
附件
Return Value#
BMXFileAttachment
Declared In#
floo_proxy.h
Instance Methods#
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="dynamicCastWithAttachment:" %}{% endlanying_code_snippet %}
clone#
- (BMXMessageAttachment *)clone
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="clone" %}{% endlanying_code_snippet %}
dealloc#
- (void)dealloc
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="dealloc" %}{% endlanying_code_snippet %}
displayName#
显示名
- (NSString *)displayName
Return Value#
NSString
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="displayName" %}{% endlanying_code_snippet %}
downloadStatus#
附件下载状态
- (BMXMessageAttachment_DownloadStatus)downloadStatus
Return Value#
BMXMessageAttachment_DownloadStatus
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="downloadStatus" %}{% endlanying_code_snippet %}
fileLength#
文件长度
- (long long)fileLength
Return Value#
NSString
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="fileLength" %}{% endlanying_code_snippet %}
initWithData:displayName:conversationId:#
- (id)initWithData:(NSData )aData displayName:(NSString )displayName conversationId:(long long)conversationId
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="initWithData:displayName:conversationId:" %}{% endlanying_code_snippet %}
initWithPath:#
- (id)initWithPath:(NSString )path*
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="initWithPath:" %}{% endlanying_code_snippet %}
initWithPath:displayName:#
构造函数,构建发送文件消息附件
- (id)initWithPath:(NSString )path displayName:(NSString )displayName
Parameters#
path
文件的本地路径
displayName
文件展示名
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="initWithPath:displayName:" %}{% endlanying_code_snippet %}
initWithRatelUrl:displayName:fileLength:#
构造函数,构建接收文件消息附件
- (id)initWithRatelUrl:(NSString )ratelUrl displayName:(NSString )displayName fileLength:(long long)fileLength
Parameters#
ratelUrl
ratel文件服务器地址
displayName
文件展示名
fileLength
文件大小
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="initWithRatelUrl:displayName:fileLength:" %}{% endlanying_code_snippet %}
path#
本地路径
- (NSString *)path
Return Value#
NSString
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="path" %}{% endlanying_code_snippet %}
ratelUrl#
远程ratel使用URL
- (NSString *)ratelUrl
Return Value#
NSString
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="ratelUrl" %}{% endlanying_code_snippet %}
type#
返回文件类型
- (BMXMessageAttachment_Type)type
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="type" %}{% endlanying_code_snippet %}
url#
远程使用URL
- (NSString *)url
Return Value#
NSString
Declared In#
floo_proxy.h
Example:
{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="url" %}{% endlanying_code_snippet %}