ICAudioAttachment
Represents an audio file attachment.
Return Type | Method |
---|---|
ICAudioAttachment | fromJSON(JSONObject jsonObj) |
long | getDuration() |
void | setDuration(long duration) |
fromJSON
Instantiates a new ICAudioAttachment instance from the supplied JSONObject.
The JSONObject must contain valid audio attachment data.
Syntax: static ICAudioAttachment fromJSON(JSONObject jsonObj)
Return Value: A new ICAudioAttachment or null if jsonObj is null.
Parameters:
Parameter | Type | Description |
---|---|---|
jsonObj | JSONObject | A valid JSONObject instance containing audio attachment data. |
getDuration
Returns the audio attachment duration, in seconds.
Syntax: long getDuration()
Return Value: The audio attachment duration, in seconds.
setDuration
Sets the audio attachment duration, in seconds.
Syntax: void setDuration(long duration)
Parameters:
Parameter | Type | Description |
---|---|---|
duration | int | Specifies the duration in seconds. |
Updated 12 months ago