Class SerenityHubFavorites
User-toggled set of favorite catalog entries, keyed by SerenityHubToolEntry.Id and stored under
SerenityHubEditorPrefsStore (ADR-8). Unbounded — unlike recents, no eviction is applied.
Inheritance
SerenityHubFavorites
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubFavorites
Constructors
SerenityHubFavorites()
Declaration
public SerenityHubFavorites()
SerenityHubFavorites(ISerenityHubKeyValueStore)
Declaration
public SerenityHubFavorites(ISerenityHubKeyValueStore store)
Parameters
Methods
IsFavorite(string)
True when entryId is currently favorited.
Declaration
public bool IsFavorite(string entryId)
Parameters
| Type |
Name |
Description |
| string |
entryId |
|
Returns
ReadFavorites()
Reads the current favorites set.
Declaration
public IReadOnlyList<string> ReadFavorites()
Returns
Toggle(string)
Adds entryId if absent, removes it if present.
Declaration
public void Toggle(string entryId)
Parameters
| Type |
Name |
Description |
| string |
entryId |
|