LaunchBoxContributors
On this page

InstallEmulatorArgs13.13

Class in Unbroken.LaunchBox.Plugins

C#
public class InstallEmulatorArgs
Arguments passed to provide context to the installation request

Constructors

InstallEmulatorArgs Changed 13.27

C#
public InstallEmulatorArgs(
    string platform,
    Action<string, string?, double?> reportProgressAction,
    Func<bool> cancelFunc,
    IEmulator? existing = null,
    string? version = null,
    bool createEmulator = true
)
Initializes an emulator installation request.
platform
The platform for which the emulator is requested.
reportProgressAction
The callback receiving status text, detail text, and optional numeric progress.
cancelFunc
The callback indicating whether cancellation was requested.
existing
The emulator record to update, or null for a new installation.
version
The version to install, or null for the latest available version.
createEmulator
Whether the installation should create a LaunchBox emulator record.

Properties

ExistingEmulator Changed 13.27

C#
public IEmulator? ExistingEmulator { get; }
The emulator record that needs reinstalled

Platform

C#
public string Platform { get; }
The platform this installation request is for

ReportProgressAction Changed 13.27

C#
public Action<string, string?, double?>? ReportProgressAction { get; }
Action to call when updating progress

ShouldCancelFunc Changed 13.27

C#
public Func<bool>? ShouldCancelFunc { get; }
Function to call to determine if the installation should be cancelled or not

ShouldCreateEmulator

C#
public bool ShouldCreateEmulator { get; }
Should the installation process create a LaunchBox emulator record?

Version Changed 13.27

C#
public string? Version { get; }
The version of the emulator that should be installed. If null use the latest version of the emulator