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#
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVoiceAttachment",function="dynamicCastWithAttachment:" %}{% endlanying_code_snippet %}
clone#
克隆函數
- (BMXMessageAttachment *)clone
Return Value#
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVoiceAttachment",function="clone" %}{% endlanying_code_snippet %}
dealloc#
- (void)dealloc
{% 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
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVoiceAttachment",function="duration" %}{% endlanying_code_snippet %}
initWithPath:duration:#
- (id)initWithPath:(NSString )path duration:(int)duration*
{% 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
{% 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
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVoiceAttachment",function="initWithRatelUrl:duration:displayName:fileLength:" %}{% endlanying_code_snippet %}
type#
回傳檔案類型
- (BMXMessageAttachment_Type)type
Return Value#
Declared In#
floo_proxy.h
Example:
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVoiceAttachment",function="type" %}{% endlanying_code_snippet %}