Class AssetCollectionExtensions
Inherited Members
Namespace: Unity.Cloud.Assets
Syntax
public static class AssetCollectionExtensions
Methods
InsertAssetsToCollectionAsync(IAssetCollectionManager, IAssetCollection, IEnumerable<IAsset>, CancellationToken)
Inserts assets into the asset collection of an IProject.
Declaration
public static Task InsertAssetsToCollectionAsync(this IAssetCollectionManager collectionManager, IAssetCollection assetCollection, IEnumerable<IAsset> assets, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IAssetCollectionManager | collectionManager | The IAssetCollectionManager handling the call. |
IAssetCollection | assetCollection | The collection to be modified. |
IEnumerable<IAsset> | assets | The assets to add. |
CancellationToken | token | The cancellation token. |
Returns
Type | Description |
---|---|
Task | A task with no result. |
RemoveAssetsFromCollectionAsync(IAssetCollectionManager, IAssetCollection, IEnumerable<IAsset>, CancellationToken)
Removes assets from the asset collection of an IProject.
Declaration
public static Task RemoveAssetsFromCollectionAsync(this IAssetCollectionManager collectionManager, IAssetCollection assetCollection, IEnumerable<IAsset> assets, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IAssetCollectionManager | collectionManager | The IAssetCollectionManager handling the call. |
IAssetCollection | assetCollection | The collection to be modified. |
IEnumerable<IAsset> | assets | The assets to remove. |
CancellationToken | token | The cancellation token |
Returns
Type | Description |
---|---|
Task | A task with no result. |