/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Data/Contracts/IImageService.cs
27 строк
1 KB
d2dyno
Code Quality: Implemented OwlCore.Storage (#16900)
20 мар 2025, 21:51
Не верифицирован
20 мар 2025, 21:51
84efbc2
Код
Авторство
О чём код?
// Copyright (c) Files Community // Licensed under the MIT License. using Files.Shared.Utils; namespace Files.App.Data.Contracts { /// <summary> /// Represents a service used for data to image conversion. /// </summary> public interface IImageService { /// <summary> /// Gets associated item icon of provided <paramref name="storable"/>. May return null if the icon is inaccessible. /// </summary> /// <param name="storable">The storable object of which to get the icon.</param> /// <param name="cancellationToken">A <see cref="CancellationToken"/> that cancels this action.</param> /// <returns>A <see cref="Task"/> that represents the asynchronous operation. If successful, value is <see cref="IImage"/> representation of the icon, otherwise null.</returns> Task<IImage?> GetIconAsync(IStorable storable, CancellationToken cancellationToken); [Obsolete("Use GetIconAsync() instead.")] Task<IImage?> GetImageModelFromDataAsync(byte[]? rawData); [Obsolete("Use GetIconAsync() instead.")] Task<IImage?> GetImageModelFromPathAsync(string filePath, uint thumbnailSize = 64u); } }