Methods
(static) downloadData(url, callback)
Download data from the connected domain's asset server.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | url of asset to download, must be atp scheme url. |
callback |
Assets~downloadDataCallback |
(static) setMapping(path, hash, callback)
Sets up a path to hash mapping within the connected domain's asset server
Parameters:
Name | Type | Description |
---|---|---|
path |
string | |
hash |
string | |
callback |
Assets~setMappingCallback |
(static) uploadData(data, callback)
Upload content to the connected domain's asset server.
Parameters:
Name | Type | Description |
---|---|---|
data |
string | content to upload |
callback |
Assets~uploadDataCallback | called when upload is complete |
Type Definitions
downloadDataCallback(data)
Called when downloadData is complete
Parameters:
Name | Type | Description |
---|---|---|
data |
string | content that was downloaded |
setMappingCallback()
Called when setMapping is complete
uploadDataCallback(url, hash)
Called when uploadData is complete
Parameters:
Name | Type | Description |
---|---|---|
url |
string | |
hash |
string |