Constructor

MediaResponse

new MediaResponse(mediaType)

Constructor for MediaResponse.

Parameter

mediaType

Optional

MediaValues.Type

Type of the media which defaults to MediaValues.Type.AUDIO

Properties

mediaObjects

Array of MediaObject

Array of MediaObject held in the MediaResponse.

mediaType

Type of the media within this MediaResponse

Method

addMediaObjects

addMediaObjects(items) returns MediaResponse

Adds a single media file or list of media files to the cart.

Parameter

items

(MediaObject or Array of MediaObject)

Single or Array of MediaObject to add.

Returns

MediaResponse Returns current constructed MediaResponse.