LaunchBoxContributors
On this page

IAchievementProgressCapability14.1

Interface in Unbroken.LaunchBox.Plugins.Components.Achievements

C#
public interface IAchievementProgressCapability
Supplies progress for the configured account, keeping modes separate.

Methods

  • GetProgressAsyncReturns observations for exactly the requested account and mode; never substitute another account.
  • GetProgressContextsAsyncReports the configured account's contexts in preferred display order.

GetProgressAsync

C#
Returns observations for exactly the requested account and mode; never substitute another account.
request
Games and captured context.
cancellationToken
Cancels the operation.

Returns

Progress with per-game completeness and diagnostics.

GetProgressContextsAsync

C#
Task<AchievementContextResult> GetProgressContextsAsync(
    CancellationToken cancellationToken
)
Reports the configured account's contexts in preferred display order.
cancellationToken
Cancels the operation.

Returns

A complete empty result means explicitly unconfigured; incomplete results do not clear saved selection.

Events

  • ContextsChangedRaised after account, connection, or mode configuration changes, including logout; the host invalidates outstanding requests.

ContextsChanged

C#
event EventHandler? ContextsChanged
Raised after account, connection, or mode configuration changes, including logout; the host invalidates outstanding requests.