LANYINGDevelopers
Web & Mini ProgramiOSAndroidC++Server API

BMXVideoAttachment Class Reference#

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

Overview#

@interface Video message attachment

Class Methods#

dynamicCastWithAttachment:#

Type casting

+ (BMXVideoAttachment )dynamicCastWithAttachment:(BMXMessageAttachment )attachment

Parameters#

attachment
The attachment

Return Value#

BMXVideoAttachment

Declared In#

  • floo_proxy.h

Instance Methods#


Example:

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

clone#

Cloning function

- (BMXMessageAttachment *)clone

Return Value#

BMXMessageAttachment

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="clone" %}{% endlanying_code_snippet %}

dealloc#

- (void)dealloc


Example:

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

duration#

Duration of the video

- (int)duration

Return Value#

int

Declared In#

  • floo_proxy.h


Example:

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

initWithPath:duration:size:#

- (id)initWithPath:(NSString )path duration:(int)duration size:(BMXMessageAttachmentSize )size


Example:

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

initWithPath:duration:size:displayName:#

Constructor

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

Parameters#

path
Local file path

duration
Duration of the video

size
Width and height of the video

displayName
Attachment name displayed in UI pages

Declared In#

  • floo_proxy.h


Example:

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

initWithPath:thumbnailPath:duration:size:#

- (id)initWithPath:(NSString )path thumbnailPath:(NSString )thumbnailPath duration:(int)duration size:(BMXMessageAttachmentSize )size*


Example:

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

initWithPath:thumbnailPath:duration:size:displayName:#

Constructor

- (id)initWithPath:(NSString )path thumbnailPath:(NSString )thumbnailPath duration:(int)duration size:(BMXMessageAttachmentSize )size displayName:(NSString )displayName

Parameters#

path
Local file path

thumbnailPath
Local file path of thumbnail

duration
Duration of the video

size
Width and height of the video

displayName
Attachment name displayed in UI pages

Declared In#

  • floo_proxy.h


Example:

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

initWithRatelUrl:duration:size:displayName:fileLength:#

Constructor

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

Parameters#

ratelUrl
The file URL on REST server

duration
Duration of the video

size
Width and height of the video

displayName
Attachment name displayed in UI pages

fileLength
File length

Declared In#

  • floo_proxy.h


Example:

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

initWithRatelUrl:thumbnailRatelUrl:duration:size:displayName:fileLength:#

Constructor

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

Parameters#

ratelUrl
The file URL on REST server

thumbnailRatelUrl
The thumbnail URL on REST server

duration
Duration of the video

size
Width and height of the video

displayName
Attachment name displayed in UI pages

fileLength
File length

Declared In#

  • floo_proxy.h


Example:

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

setThumbnail:#

Set thumbnail of video

- (void)setThumbnail:(NSString )path*

Parameters#

path
Local file path

Declared In#

  • floo_proxy.h


Example:

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

setThumbnailRatelUrl:#

Set the thumbnail URL on REST server

- (void)setThumbnailRatelUrl:(NSString )thumbnailRatelUrl*

Parameters#

thumbnailRatelUrl
The thumbnail URL on REST server

Declared In#

  • floo_proxy.h


Example:

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

size#

Width and height of the video

- (BMXMessageAttachmentSize *)size

Return Value#

BMXMessageAttachmentSize

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="size" %}{% endlanying_code_snippet %}

thumbnailDownloadStatus#

Download status of thumbnail

- (BMXMessageAttachment_DownloadStatus)thumbnailDownloadStatus

Return Value#

DownloadStatus

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="thumbnailDownloadStatus" %}{% endlanying_code_snippet %}

thumbnailPath#

Local file path of thumbnail

- (NSString *)thumbnailPath

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="thumbnailPath" %}{% endlanying_code_snippet %}

thumbnailRatelUrl#

The thumbnail URL on REST server

- (NSString *)thumbnailRatelUrl

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="thumbnailRatelUrl" %}{% endlanying_code_snippet %}

thumbnailUrl#

The thumbnail URL on HTTP server

- (NSString *)thumbnailUrl

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="thumbnailUrl" %}{% endlanying_code_snippet %}

type#

Attachment type

- (BMXMessageAttachment_Type)type

Return Value#

BMXMessageAttachment_Type

Declared In#

  • floo_proxy.h

Example:

{% lanying_code_snippet repo="lanying-im-ios",class="BMXVideoAttachment",function="type" %}{% endlanying_code_snippet %}
Generated API content with concise AI notes where context helps.