- CSDKAssetBrowser
A global object that lets you interact with the Creative SDK Asset Browser.
- successCallback :
function
A callback to be used upon successful upload or download of an image.
- errorCallback :
function
A callback to handle errors when attempting to upload or download an image.
- DownloadOptions :
Object
An object for configuring Asset Browser download behavior.
- UploadOptions :
Object
An object for configuring Asset Browser upload behavior.
A global object that lets you interact with the Creative SDK Asset Browser.
Kind: global variable
Kind: static enum property of CSDKAssetBrowser
Read only: true
Properties
Name | Type | Default |
---|---|---|
COMPOSITIONS | number |
0 |
DRAW | number |
1 |
FILES | number |
2 |
LIBRARY | number |
3 |
PHOTOS | number |
4 |
PSMIX | number |
5 |
SKETCHES | number |
6 |
LINE | number |
7 |
BRUSH | number |
8 |
Downloads a file from the Creative Cloud.
Kind: static method of CSDKAssetBrowser
Param | Type | Description |
---|---|---|
successCallback | successCallback |
See type definition. |
errorCallback | errorCallback |
See type definition. |
options | DownloadOptions |
An object containing optional property/value pairs. |
Uploads a file to the Creative Cloud.
Kind: static method of CSDKAssetBrowser
Param | Type | Description |
---|---|---|
successCallback | successCallback |
See type definition. |
errorCallback | errorCallback |
See type definition. |
url | string |
path to the asset to be uploaded. |
options | UploadOptions |
An object containing optional property/value pairs. |
A callback to be used upon successful upload or download of an image.
Kind: global typedef
Param | Type | Description |
---|---|---|
newUrl | string |
The URL of the new downloaded image. |
A callback to handle errors when attempting to upload or download an image.
Kind: global typedef
Param | Type | Description |
---|---|---|
error | Object |
Error object. |
An object for configuring Asset Browser download behavior.
Kind: global typedef
Properties
Name | Type | Default | Description |
---|---|---|---|
outputFile | string |
"''" |
Path to save the file. If not specified the system default is used. |
An object for configuring Asset Browser upload behavior.
Kind: global typedef
Properties
Name | Type | Default | Description |
---|---|---|---|
uploadName | string |
"''" |
The name your want the file to have in the Creative Cloud. If not specified the current file name is used. |
overwrite | boolean |
false |
Sets whether or not to overwrite the existing file or create a copy. |