Constructor

MediaObject

new MediaObject(name, contentUrl)

Constructor for MediaObject.

Parameter

name

string

Name of the MediaObject.

contentUrl

string

URL of the MediaObject.

Properties

contentUrl

string

MediaObject URL.

description

(string or undefined)

Description of the MediaObject.

icon

(Image or undefined)

Icon image.

largeImage

(Image or undefined)

Large image.

name

string

Name of the MediaObject.

Methods

setDescription

setDescription(description) returns MediaObject

Set the description of the item.

Parameter

description

string

Description of the item.

Returns

MediaObject Returns current constructed MediaObject.

setImage

setImage(url, type) returns MediaObject

Sets the image for this item.

Parameter

url

string

Image source URL.

type

MediaValues.ImageType

Type of image (LARGE or ICON).

Returns

MediaObject Returns current constructed MediaObject.