cc-everywhere

Interface: HostContextualDataForImages

Context to be passed for Contextual Recommendations for Images

Properties

Property
Type
Description
textContent
string[]
Array of strings to be passed as context for contextual browse.
encodedImagesData?
Base64Asset[]
Array of Base64 encoded images to be passed as context for contextual browse. Recommendation is to pass image of width 330px(maintaing aspect ratio) e.g. { [ { type: AssetType.IMAGE, dataType: AssetDataType.BASE64, name: "example-image.jpg", // optional data: "data:image/jpeg;base64,/9j/4AAQSkZJRg.. } ] }
contextualRecommendationsVersion?
number
Contextual Recommendations Version. Defaults to version 1, send value to switch to latest version Default 1
getDataForEvaluation?
boolean
Boolean to indicate if data should be sent back to host for evaluation Default false