IAchievementProgressCapability14.1
Interface in Unbroken.LaunchBox.Plugins.Components.Achievements
public interface IAchievementProgressCapabilitySupplies 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
Task<AchievementResult<AchievementProgress>> GetProgressAsync(
AchievementProgressRequest request,
CancellationToken cancellationToken
)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
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
event EventHandler? ContextsChangedRaised after account, connection, or mode configuration changes, including logout; the host invalidates outstanding requests.