# new MediaAttachment(params)
Creates a new MediaAttachment
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | Object with parms
Properties
|
- Source:
Methods
# (static) withImageUrl(imageUrl) → {MediaAttachment}
Creates media attachment instance with image url.
Parameters:
Name | Type | Description |
---|---|---|
imageUrl |
string | Url of the image. |
- Source:
Returns:
Created media attachment instance.
- Type
- MediaAttachment
# (static) withVideoUrl(videoUrl) → {MediaAttachment}
Creates media attachment instance with video url.
Parameters:
Name | Type | Description |
---|---|---|
videoUrl |
string | Url of the video. |
- Source:
Returns:
Created media attachment instance.
- Type
- MediaAttachment
# getImageUrl() → {string}
Returns image url.
- Source:
Returns:
Image url.
- Type
- string
# getVideoUrl() → {string}
Returns video url.
- Source:
Returns:
Video url.
- Type
- string