/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Files.App/Data/Contracts/IStartMenuService.cs
34 строки
2 KB
Yair
Code Quality: Ran code cleanup (#17307)
25 июл 2025, 03:57
Не верифицирован
25 июл 2025, 03:57
4558bc2
Код
Авторство
О чём код?
namespace Files.App.Data.Contracts { /// <summary> /// A service that manages actions associated with system Start Menu. /// </summary> public interface IStartMenuService { // TODO(s) [Obsolete("Use IsPinnedAsync instead. This method is used for a workaround in ListedItem class to avoid major refactoring.")] bool IsPinned(string itemPath); /// <summary> /// Checks if the provided <paramref name="storable"/> is pinned to the Start Menu. /// </summary> /// <param name="storable">The <see cref="IStorable"/> object to check for.</param> /// <returns>A <see cref="Task"/> that represents the asynchronous operation. If the folder is pinned, returns true; otherwise false.</returns> Task<bool> IsPinnedAsync(IStorable storable); /// <summary> /// Adds the provided <paramref name="storable"/> to the pinned items list in the Start Menu. /// </summary> /// <param name="storable">The <see cref="IStorable"/> object to pin.</param> /// <param name="displayName">The optional name to use when pinning an item.</param> /// <returns>A <see cref="Task"/> that represents the asynchronous operation.</returns> Task PinAsync(IStorable storable, string? displayName = null); /// <summary> /// Removes the provided <paramref name="storable"/> from the pinned items list in the Start Menu. /// </summary> /// <param name="storable">The <see cref="IStorable"/> object to unpin.</param> /// <returns>A <see cref="Task"/> that represents the asynchronous operation.</returns> Task UnpinAsync(IStorable storable); } }