Interface ILaunchManager
The interface for a launch manager.
Namespace: Phoenix.Applications.Launch
Assembly: Phoenix.Abstractions.Applications.dll
Syntax
public interface ILaunchManager
Properties
View SourceLaunchParameterFactories
Gets the parameter factories registered for use when launching.
Declaration
IList<LaunchParameterFactoryBase> LaunchParameterFactories { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<LaunchParameterFactoryBase> |
SavedConfigurationPaths
Gets the saved configuration path history.
Declaration
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
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
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 | Whether or not the launch was successful. |
LoadConfigurationFromFile(String)
Loads a configuration from a file.
Declaration
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
void RegisterLaunchParameterFactory(LaunchParameterFactoryBase parameterFactory)
Parameters
Type | Name | Description |
---|---|---|
LaunchParameterFactoryBase | parameterFactory | The factory to register. |
SaveConfiguration(LaunchConfiguration, String)
Saves a configuration to file.
Declaration
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
void SaveExistingConfigurationPath(string configPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | configPath | The path to save. |
UnregisterLaunchParameterFactory(LaunchParameterFactoryBase)
Unregisters a launch parameter factory.
Declaration
void UnregisterLaunchParameterFactory(LaunchParameterFactoryBase parameterFactory)
Parameters
Type | Name | Description |
---|---|---|
LaunchParameterFactoryBase | parameterFactory | The factory to unregister. |