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

BMXVoiceAttachment Class Reference#

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

Overview#

@interface 音訊訊息附件

Class Methods#

dynamicCastWithAttachment:#

訊息附件強制轉換為語音附件

+ (BMXVoiceAttachment )dynamicCastWithAttachment:(BMXMessageAttachment )attachment

Parameters#

attachment
附件

Return Value#

BMXVoiceAttachment

Declared In#

  • floo_proxy.h

Instance Methods#


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVoiceAttachment",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="BMXVoiceAttachment",function="clone" %}{% endlanying_code_snippet %}

dealloc#

- (void)dealloc


Example:

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

duration#

語音時長

- (int)duration

Return Value#

int

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVoiceAttachment",function="duration" %}{% endlanying_code_snippet %}

initWithPath:duration:#

- (id)initWithPath:(NSString )path duration:(int)duration*


Example:

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

initWithPath:duration:displayName:#

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

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

Parameters#

path
檔案的本地路徑

duration
音訊時長

displayName
檔案展示名

Declared In#

  • floo_proxy.h


Example:

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

initWithRatelUrl:duration:displayName:fileLength:#

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

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

Parameters#

ratelUrl
ratel檔案伺服器地址

duration
音訊時長

displayName
檔案展示名

fileLength
檔案大小

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVoiceAttachment",function="initWithRatelUrl:duration:displayName:fileLength:" %}{% 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="BMXVoiceAttachment",function="type" %}{% endlanying_code_snippet %}
自動產生的 API 內容,僅在必要位置補充精簡的 AI 解說。