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 %}