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
clone
克隆函数
- (BMXMessageAttachment *)clone
Return Value
Declared In
floo_proxy.h
dealloc
- (void)dealloc
duration
语音时长
- (int)duration
Return Value
int
Declared In
floo_proxy.h
initWithPath:duration:
- (id)initWithPath:(NSString *)*path* duration:(int)*duration*
initWithPath:duration:displayName:
构造函数,构建发送音频消息附件
- (id)initWithPath:(NSString *)*path* duration:(int)*duration* displayName:(NSString *)*displayName*
Parameters
path
文件的本地路径
duration
音频时长
displayName
文件展示名
Declared In
floo_proxy.h
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
type
返回文件类型
- (BMXMessageAttachment_Type)type
Return Value
Declared In
floo_proxy.h
Example: