logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityAchievementsViewService

    Registry of achievements views keyed by Id, exposed to the IViewRouter as an IViewProvider so a menu option (or a ShowAchievementsSignal) can show one by Id — mirroring the role UnityLeaderboardViewService plays for leaderboard views.

    Inheritance
    object
    UnityAchievementsViewService
    Implements
    IService
    IFoundationSettings
    IViewProvider
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Achievements.Infrastructure.Services
    Assembly: Serenity.UnityAchievements.Infrastructure.dll
    Syntax
    public sealed class UnityAchievementsViewService : IService, IFoundationSettings, IViewProvider
    Remarks

    No dedicated Business port for v1: nothing outside this Unity module consumes an achievements-view specific member beyond IViewProvider/IService.

    Constructors

    UnityAchievementsViewService(string, ILogService)

    Creates the service.

    Declaration
    public UnityAchievementsViewService(string id, ILogService logService)
    Parameters
    Type Name Description
    string id

    Service id.

    ILogService logService

    Logging service.

    Properties

    Guid

    Declaration
    public string Guid { get; set; }
    Property Value
    Type Description
    string

    Id

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    string

    LogService

    Declaration
    public ILogService LogService { get; set; }
    Property Value
    Type Description
    ILogService

    Methods

    HasView(string)

    Declaration
    public bool HasView(string viewId)
    Parameters
    Type Name Description
    string viewId
    Returns
    Type Description
    bool

    HideView(string)

    Declaration
    public void HideView(string viewId)
    Parameters
    Type Name Description
    string viewId

    Register(string, IViewBase)

    Registers a built achievements view so it can be shown by its Id.

    Declaration
    public void Register(string id, IViewBase view)
    Parameters
    Type Name Description
    string id

    The id to register the view under.

    IViewBase view

    The view to register.

    ShowView(string)

    Declaration
    public void ShowView(string viewId)
    Parameters
    Type Name Description
    string viewId

    Implements

    IService
    IFoundationSettings
    IViewProvider
    In this article
    © 2026 Serenity. All Rights Reserved