MediaAttachment

MediaAttachment

# new MediaAttachment(params)

Creates a new MediaAttachment
Parameters:
Name Type Description
params object Object with parms
Properties
Name Type Attributes Description
imageUrl string <optional>
Image URL
videoUrl string <optional>
Video URL

Methods

# (static) withImageUrl(imageUrl) → {MediaAttachment}

Creates media attachment instance with image url.
Parameters:
Name Type Description
imageUrl string Url of the image.
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.
Returns:
Created media attachment instance.
Type
MediaAttachment

# getImageUrl() → {string}

Returns image url.
Returns:
Image url.
Type
string

# getVideoUrl() → {string}

Returns video url.
Returns:
Video url.
Type
string