藍鶯開發者
Web & Mini ProgramiOSAndroidC++Server API

BMXImageAttachment Class Reference#

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

Overview#

@interface 圖片訊息附件

Class Methods#

dynamicCastWithAttachment:#

訊息附件強制轉換為圖像附件

+ (BMXImageAttachment )dynamicCastWithAttachment:(BMXMessageAttachment )attachment

Parameters#

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#

克隆函數

- (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:#

構造函數,構建發送圖片訊息附件

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

Parameters#

path
本地路徑

size
圖片的大小,寬度和高度

displayName
展示名

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:#

構造函數,構建接收圖片訊息附件

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

Parameters#

size
圖片的大小,寬度和高度

displayName
展示名

fileLength
檔案大小

url
圖片ratel伺服器地址

Declared In#

  • floo_proxy.h


Example:

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

setThumbnail:#

設定發送圖片訊息縮略圖

- (void)setThumbnail:(NSString )path*

Parameters#

path
本地路徑

Declared In#

  • floo_proxy.h


Example:

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

size#

圖片大小

- (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#

縮略圖下載狀態

- (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#

縮略圖本地路徑

- (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#

遠程使用縮略圖URL

- (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#

回傳圖片附件類型

- (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 %}
自動產生的 API 內容,僅在必要位置補充精簡的 AI 解說。