BMXVoiceAttachment Class Reference#
Inherits from BMXFileAttachment :
BMXMessageAttachment :
BMXBaseObject :
NSObject
Declared in floo_proxy.h
Overview#
@interface Voice message attachment
Class Methods#
dynamicCastWithAttachment:#
Type casting
+ (BMXVoiceAttachment )dynamicCastWithAttachment:(BMXMessageAttachment )attachment
Parameters#
attachment
The 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#
Cloning function
- (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#
Duration of the voice
- (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:#
Constructor
- (id)initWithPath:(NSString )path duration:(int)duration displayName:(NSString )displayName
Parameters#
path
Local file path
duration
Duration of the voice file
displayName
Attachment name displayed in UI pages
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:#
Constructor
- (id)initWithRatelUrl:(NSString )ratelUrl duration:(int)duration displayName:(NSString )displayName fileLength:(long long)fileLength
Parameters#
ratelUrl
The file URL on REST server
duration
Duration of the voice file
displayName
Attachment name displayed in UI pages
fileLength
File length
Declared In#
floo_proxy.h
{% lanying_code_snippet repo="lanying-im-ios",class="BMXVoiceAttachment",function="initWithRatelUrl:duration:displayName:fileLength:" %}{% endlanying_code_snippet %}
type#
Attachment 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 %}