Class UnityAchievementsView
Runtime view that hosts a UnityAchievementsPanel and is resolvable by Id from a menu transition or a ShowAchievementsSignal (registered with the IViewRouter via UnityAchievementsViewService). On Show() it reads the player's achievements, maps them to rows and fills the panel; while shown it redraws whenever the module says something changed.
Namespace: Serenity.Achievements.Infrastructure.Views
Assembly: Serenity.UnityAchievements.Infrastructure.dll
Syntax
public sealed class UnityAchievementsView : UnityViewBase
Remarks
Reads are synchronous over the achievement service's in-memory cache, so a refresh costs a mapping pass and nothing else. Only the screenshot thumbnails are asynchronous, and they arrive per row.
Intentionally Unity-only beyond IViewBase, mirroring UnityLeaderboardView: nothing
outside this module consumes an achievements-specific member of this view.
Constructors
UnityAchievementsView()
Declaration
public UnityAchievementsView()
Methods
Configure(UnityAchievementsViewConfiguration)
Injects the definition, the already-built panel, and the services the view needs (called by the installer).
Declaration
public void Configure(UnityAchievementsViewConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityAchievementsViewConfiguration | configuration | Everything the view runs on. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |
Hide()
Declaration
public override void Hide()
OnDestroy()
Declaration
protected override void OnDestroy()
Show()
Declaration
public override void Show()