ImportActionArgs13.15
Class in Unbroken.LaunchBox.Plugins
public class ImportActionArgsSupplies the chosen emulator import action, imported games, and progress callbacks.
Constructors
ImportActionArgsInitializes an emulator import action request.
ImportActionArgs
public ImportActionArgs(
EmulatorImportAction action,
IList<IGame> games,
Action<string, double?> reportProgress,
Func<bool> isCancelled
)Initializes an emulator import action request.
action- The selected action.
games- The imported games on which to act.
reportProgress- The callback receiving status text and optional numeric progress.
isCancelled- The callback indicating whether cancellation was requested.
Properties
ActionGets the import action selected by the user.GamesImportedGets the library games created by the import.
Action
public EmulatorImportAction Action { get; }Gets the import action selected by the user.
GamesImported
Gets the library games created by the import.
Methods
ReportActionProgressForwards an import-action progress update to the host callback.ShouldCancelActionQueries whether the host has requested cancellation.
ReportActionProgress
public void ReportActionProgress(string label, double? progress)Forwards an import-action progress update to the host callback.
label- The status text to display.
progress- The numeric progress value, or null for indeterminate progress.
ShouldCancelAction
public bool ShouldCancelAction()Queries whether the host has requested cancellation.