logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    SerenityHubFavorites
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Localization.Installation.Settings.Editor.Hub.Services
    Assembly: Serenity.UnityLocalization.Installation.Editor.dll
    Syntax
    public sealed class SerenityHubFavorites

    Constructors

    SerenityHubFavorites()

    Declaration
    public SerenityHubFavorites()

    SerenityHubFavorites(ISerenityHubKeyValueStore)

    Declaration
    public SerenityHubFavorites(ISerenityHubKeyValueStore store)
    Parameters
    Type Name Description
    ISerenityHubKeyValueStore store

    Methods

    IsFavorite(string)

    True when entryId is currently favorited.

    Declaration
    public bool IsFavorite(string entryId)
    Parameters
    Type Name Description
    string entryId
    Returns
    Type Description
    bool

    ReadFavorites()

    Reads the current favorites set.

    Declaration
    public IReadOnlyList<string> ReadFavorites()
    Returns
    Type Description
    IReadOnlyList<string>

    Toggle(string)

    Adds entryId if absent, removes it if present.

    Declaration
    public void Toggle(string entryId)
    Parameters
    Type Name Description
    string entryId
    In this article
    © 2026 Serenity. All Rights Reserved