-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIReadOnlyImagesCollection.cs
More file actions
27 lines (23 loc) · 842 Bytes
/
IReadOnlyImagesCollection.cs
File metadata and controls
27 lines (23 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Collections.Generic;
using OwlCore.ComponentModel;
using OwlCore.Storage;
namespace WindowsAppCommunity.Sdk;
/// <summary>
/// Represents a collection of images.
/// </summary>
public interface IReadOnlyImagesCollection : IHasId
{
/// <summary>
/// Gets the image files in this collection.
/// </summary>
/// <param name="cancellationToken">A token that can be used to cancel the ongoing operation.</param>
public IAsyncEnumerable<IFile> GetImageFilesAsync(CancellationToken cancellationToken);
/// <summary>
/// Raised when the images in this collection are updated.
/// </summary>
public event EventHandler<IFile[]>? ImagesAdded;
/// <summary>
/// Raised when the images in this collection are removed.
/// </summary>
public event EventHandler<IFile[]>? ImagesRemoved;
}