LANYINGDevelopers
Web & Mini ProgramiOSAndroidC++Server API

BMXFileAttachment Class Reference#

Inherits from BMXMessageAttachment :
BMXBaseObject :
NSObject
Declared in floo_proxy.h

Overview#

@interface File attachment of messages

Class Methods#

dynamicCastWithAttachment:#

Type casting

+ (BMXFileAttachment )dynamicCastWithAttachment:(BMXMessageAttachment )attachment

Parameters#

attachment
The attachment

Return Value#

BMXFileAttachment

Declared In#

  • floo_proxy.h

Instance Methods#


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="dynamicCastWithAttachment:" %}{% endlanying_code_snippet %}

clone#

- (BMXMessageAttachment *)clone


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="clone" %}{% endlanying_code_snippet %}

dealloc#

- (void)dealloc


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="dealloc" %}{% endlanying_code_snippet %}

displayName#

Attachment name displayed in UI pages.

- (NSString *)displayName

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="displayName" %}{% endlanying_code_snippet %}

downloadStatus#

Attachment download status

- (BMXMessageAttachment_DownloadStatus)downloadStatus

Return Value#

BMXMessageAttachment_DownloadStatus

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="downloadStatus" %}{% endlanying_code_snippet %}

fileLength#

File length

- (long long)fileLength

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

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


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="initWithData:displayName:conversationId:" %}{% endlanying_code_snippet %}

initWithPath:#

- (id)initWithPath:(NSString )path*


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="initWithPath:" %}{% endlanying_code_snippet %}

initWithPath:displayName:#

Constructor

- (id)initWithPath:(NSString )path displayName:(NSString )displayName

Parameters#

path
Local file path

displayName
Attachment name displayed in UI pages

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="initWithPath:displayName:" %}{% endlanying_code_snippet %}

initWithRatelUrl:displayName:fileLength:#

Constructor

- (id)initWithRatelUrl:(NSString )ratelUrl displayName:(NSString )displayName fileLength:(long long)fileLength

Parameters#

ratelUrl
The file URL on REST server

displayName
Attachment name displayed in UI pages

fileLength
File length

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="initWithRatelUrl:displayName:fileLength:" %}{% endlanying_code_snippet %}

path#

Local file path

- (NSString *)path

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="path" %}{% endlanying_code_snippet %}

ratelUrl#

The file URL on REST server

- (NSString *)ratelUrl

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="ratelUrl" %}{% endlanying_code_snippet %}

type#

Attachment type

- (BMXMessageAttachment_Type)type

Return Value#

BMXMessageAttachment_Type

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXFileAttachment",function="type" %}{% endlanying_code_snippet %}

url#

Http 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 %}
Generated API content with concise AI notes where context helps.