Edit in GitHubLog an issue

Shared Types

Asset

Represents an asset that can be loaded into an Adobe Express editor component, or loaded in for an Image Quick Action.

PropertyValue(s)Description
type'image'Type of asset (image)
dataType'base64'Type of data representation (base64 only right now)
datastringBase 64 rendition of image asset

OutputAsset

Passed to the onPublish callback in PublishParams. Extends the Asset type with 3 additional properties.

PropertyValue(s)Description
type'image', 'video'Type of asset (image or video)
dataType'base64'Type of data representation
datastringBase 64 rendition of video/image asset
fileType'jpeg', 'png', 'mp4'Type of output asset
(optional) fileNamestringName of output asset
(optional) size{ width: number, height: number, unit: 'px'/'in'/'mm'}Dimensions of output asset

Callbacks

All the callbacks are optional and return void.

PropertyCallback FunctionDescription
onCancel() => {}Triggered when user closes Adobe Express modal
onError() => {}Triggered upon error with associated error code
onLoadStart() => {}Triggered once modal begins to load
onLoad() => {}Triggered once modal is loaded
onPublishStart() => {}Triggered when "Publish"/"Download" is clicked
onPublish(PublishParams) => {}Triggered when publish/download finishes

PublishParams

onPublish passes the host application a PublishParams object.

PropertyDescription
projectIdstring generated for identifying Adobe Express project
assetResulting asset: OutputAsset

CCXOutputParams

All properties are optional. Allows you to define data type and file type of output asset.

PropertyValueDescription
fileType'jpeg', 'png', 'mp4'Output asset file type
outputType'base64'Output data type

ModalParams

All properties are optional. Allows you to define the UI constraints of the Adobe Express editor iframe.

PropertyType/Value
parentElementIdstring
size{ width: number, height: number, unit: 'px'/'in'/'mm'}
paddingnumber
borderRadiusnumber
  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.