A source of assets
Methods#
findAssets()#
findAssets(queryData): Promise< | undefined| AssetsQueryResult<AssetResult>>;
Find all asset for the given type and the provided query data.
Parameters#
Parameter | Type |
---|---|
queryData | AssetQueryData |
Returns#
Promise
<
| undefined
| AssetsQueryResult
<AssetResult
>>
addAsset()?#
optional addAsset(asset): void;
Adds the given asset to this source. Throws an error if the asset source does not support adding assets.
Parameters#
Parameter | Type |
---|---|
asset | AssetDefinition |
Returns#
void
removeAsset()?#
optional removeAsset(assetId): void;
Removes the given asset from this source.
Parameters#
Parameter | Type |
---|---|
assetId | string |
Returns#
void
getSupportedMimeTypes()?#
optional getSupportedMimeTypes(): undefined | string[];
Generates a list of supported mime types for this source.
Returns#
undefined
| string
[]
a list of the mime types should be supported by this source