ICAudioAttachment
This class exposes data relating to Audio file attachments that are received through RTM or Push, also used to attach Audio files to outgoing RTM messages.
getDuration
This method is used to get the duration of the applicable audio files.
Syntax: long getDuration()
Return Value: Returns the duration in seconds of the audio files.
setDuration
This method is used to set the duration of the audio files.
Syntax: void setDuration(long duration)
Parameters:
Parameter | Type | Description |
---|---|---|
duration | long | Specifies the duration in seconds. |
Updated 8 months ago