LaunchBoxContributors
On this page

EmulatorImportActionRequest14.1

Class in Unbroken.LaunchBox.Plugins.Components.Emulators

C#
public sealed class EmulatorImportActionRequest
Provides the context for executing a selected emulator import action.

Constructors

EmulatorImportActionRequest

C#
public EmulatorImportActionRequest(
    string actionId,
    IList<IGame> importedGames,
    Action<string, double?> reportProgress,
    Func<bool> isCancelled
)
Initializes an emulator import-action request.
actionId
The integration-scoped identifier of the selected action.
importedGames
The games created by the import.
reportProgress
The callback used to report status and progress.
isCancelled
The callback used to determine whether cancellation was requested.

Properties

  • ActionIdGets the integration-scoped identifier of the selected action.
  • ImportedGamesGets the games created by the import.

ActionId

C#
public string ActionId { get; }
Gets the integration-scoped identifier of the selected action.

ImportedGames

C#
public IList<IGame> ImportedGames { get; }
Gets the games created by the import.

Methods

ReportActionProgress

C#
public void ReportActionProgress(string label, double? progress)
Reports progress for the selected action.
label
The current status label.
progress
The current progress value.

ShouldCancelAction

C#
public bool ShouldCancelAction()
Gets whether cancellation was requested.

Returns

true when cancellation was requested.