Class LaunchManager
Manages launch-related tasks.
Inheritance
Implements
Inherited Members
Namespace: Phoenix.Applications.Launch
Assembly: Phoenix.Plugin.AppLaunch.dll
Syntax
public class LaunchManager : ILaunchManager
Constructors
View SourceLaunchManager(IPhoenixLogger)
Initializes a new instance of the LaunchManager class.
Declaration
public LaunchManager(IPhoenixLogger logger)
Parameters
Type | Name | Description |
---|---|---|
IPhoenixLogger | logger | The log manager |
Properties
View SourceLaunchParameterFactories
Gets all the registered factories for launch parameters.
Declaration
public IList<LaunchParameterFactoryBase> LaunchParameterFactories { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<LaunchParameterFactoryBase> |
SavedConfigurationPaths
Gets the saved configuration path history.
Declaration
public IReadOnlyCollection<string> SavedConfigurationPaths { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<System.String> |
Methods
View SourceLaunchApplicationAsync(IDevice, IApplication, LaunchConfiguration)
Launches the application on the specified device asynchronously.
Declaration
public Task LaunchApplicationAsync(IDevice device, IApplication application, LaunchConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | The target device. |
IApplication | application | The application |
LaunchConfiguration | config | The configuration. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
LaunchApplicationAsync(IDevice, String, LaunchConfiguration)
Launches the application on the specified device asynchronously.
Declaration
public Task LaunchApplicationAsync(IDevice device, string aumid, LaunchConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | The target device. |
System.String | aumid | The application user model id (aumid). |
LaunchConfiguration | config | The configuration. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
LoadConfigurationFromFile(String)
Loads a configuration from a file.
Declaration
public LaunchConfiguration LoadConfigurationFromFile(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The path to the configuration file. |
Returns
Type | Description |
---|---|
LaunchConfiguration | The loaded configuration. |
RegisterLaunchParameterFactory(LaunchParameterFactoryBase)
Registers a launch parameter factory.
Declaration
public void RegisterLaunchParameterFactory(LaunchParameterFactoryBase parameterFactory)
Parameters
Type | Name | Description |
---|---|---|
LaunchParameterFactoryBase | parameterFactory | The factory to register. |
SaveConfiguration(LaunchConfiguration, String)
Saves a configuration to file.
Declaration
public void SaveConfiguration(LaunchConfiguration config, string filePath)
Parameters
Type | Name | Description |
---|---|---|
LaunchConfiguration | config | The configuration to save. |
System.String | filePath | The path to the file. |
SaveExistingConfigurationPath(String)
Saves an existing configuration path to the path history.
Declaration
public void SaveExistingConfigurationPath(string configPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | configPath | The path to save. |
UnregisterLaunchParameterFactory(LaunchParameterFactoryBase)
Unregisters a launch parameter factory.
Declaration
public void UnregisterLaunchParameterFactory(LaunchParameterFactoryBase parameterFactory)
Parameters
Type | Name | Description |
---|---|---|
LaunchParameterFactoryBase | parameterFactory | The factory to unregister. |