LANYINGDevelopers
Web & Mini ProgramiOSAndroidC++Server API

BMXImageAttachment Class Reference#

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

Overview#

@interface Image message attachment

Class Methods#

dynamicCastWithAttachment:#

Type casting

+ (BMXImageAttachment )dynamicCastWithAttachment:(BMXMessageAttachment )attachment

Parameters#

attachment
The attachment

Return Value#

BMXImageAttachment

Declared In#

  • floo_proxy.h

Instance Methods#


Example:

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

clone#

Cloning function

- (BMXMessageAttachment *)clone

Return Value#

BMXMessageAttachment

Declared In#

  • floo_proxy.h


Example:

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

dealloc#

- (void)dealloc


Example:

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

initWithData:thumbnailData:imageSize:displayName:conversationId:#

- (id)initWithData:(NSData )aData thumbnailData:(NSData )thumbnailData imageSize:(BMXMessageAttachmentSize )size displayName:(NSString )displayName conversationId:(long long)conversationId


Example:

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

initWithPath:size:#

- (id)initWithPath:(NSString )path size:(BMXMessageAttachmentSize )size


Example:

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

initWithPath:size:displayName:#

Constructor

- (id)initWithPath:(NSString )path size:(BMXMessageAttachmentSize )size displayName:(NSString )displayName*

Parameters#

path
Local file path

size
Width and height of the image

displayName
Attachment name displayed in UI pages

Declared In#

  • floo_proxy.h


Example:

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

initWithRatelUrl:size:displayName:fileLength:#

Constructor

- (id)initWithRatelUrl:(NSString )ratelUrl size:(BMXMessageAttachmentSize )size displayName:(NSString )displayName fileLength:(long long)fileLength*

Parameters#

size
Width and height of the image

displayName
Attachment name displayed in UI pages

fileLength
File length

url
Http url

Declared In#

  • floo_proxy.h


Example:

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

setThumbnail:#

Set the local path of thumbnail

- (void)setThumbnail:(NSString )path*

Parameters#

path
Local file path

Declared In#

  • floo_proxy.h


Example:

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

size#

Width and height of the image

- (BMXMessageAttachmentSize *)size

Return Value#

BMXMessageAttachmentSize

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXImageAttachment",function="size" %}{% endlanying_code_snippet %}

thumbnailDownloadStatus#

Downlad status of thumbnail

- (BMXMessageAttachment_DownloadStatus)thumbnailDownloadStatus

Return Value#

BMXMessageAttachment_DownloadStatus

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXImageAttachment",function="thumbnailDownloadStatus" %}{% endlanying_code_snippet %}

thumbnailPath#

Local path of thumbnail

- (NSString *)thumbnailPath

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXImageAttachment",function="thumbnailPath" %}{% endlanying_code_snippet %}

thumbnailUrl#

Http URL of thumbnail

- (NSString *)thumbnailUrl

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXImageAttachment",function="thumbnailUrl" %}{% 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="BMXImageAttachment",function="type" %}{% endlanying_code_snippet %}
Generated API content with concise AI notes where context helps.