mirror of
https://github.com/yaobiao131/downkyicore.git
synced 2025-08-10 00:52:31 +00:00
15 lines
377 B
C#
15 lines
377 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Avalonia.Media.Imaging;
|
|
|
|
namespace DownKyi.CustomControl.AsyncImageLoader;
|
|
|
|
public interface IAsyncImageLoader : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Loads image
|
|
/// </summary>
|
|
/// <param name="url">Target url</param>
|
|
/// <returns>Bitmap</returns>
|
|
public Task<Bitmap?> ProvideImageAsync(string url);
|
|
} |