Interface IDevicePackages
The interface for a device that supports actions regarding packages and applications.
Namespace: Phoenix.Applications
Assembly: Phoenix.Abstractions.Applications.dll
Syntax
public interface IDevicePackages
Properties
View SourceSupportedInteractions
Gets the supported interactions for the device. Interactions will throw a DeviceNotSupportedException if an attempt to use an unsupported interaction takes place.
Declaration
PackageInteractions SupportedInteractions { get; }
Property Value
Type | Description |
---|---|
PackageInteractions |
Methods
View SourceConstrain(IPackage)
Constrains the application.
Declaration
Task Constrain(IPackage package)
Parameters
Type | Name | Description |
---|---|---|
IPackage | package | The package to constrain. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
GetAllPackages()
Gets all the packages on the device.
Declaration
Task<IList<IPackage>> GetAllPackages()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IList<IPackage>> | All the packages. |
GetPackages(PackageFilter)
Gets all the packages on the device that match the filter.
Declaration
Task<IList<IPackage>> GetPackages(PackageFilter filter)
Parameters
Type | Name | Description |
---|---|---|
PackageFilter | filter | The filter to be applied to the packages. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IList<IPackage>> | All the filtered packages. |
GetRunningPackages()
Gets all the running packages on the device.
Declaration
Task<IList<IPackage>> GetRunningPackages()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IList<IPackage>> | The running packages. |
Launch(IApplication)
Launches the application.
Declaration
Task Launch(IApplication application)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | The application to launch. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
Launch(IApplication, String)
Launches the application.
Declaration
Task Launch(IApplication application, string commandLine)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | The application to launch. |
System.String | commandLine | The command line to launch with. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
Launch(String)
Launches the application.
Declaration
Task Launch(string aumid)
Parameters
Type | Name | Description |
---|---|---|
System.String | aumid | The Application User Model Id of the application to be launched. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
Launch(String, String)
Launches the application.
Declaration
Task Launch(string aumid, string commandLine)
Parameters
Type | Name | Description |
---|---|---|
System.String | aumid | The Application User Model Id of the application to be launched. |
System.String | commandLine | The command line to launch with. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
Resume(IPackage)
Resumes the application from a suspend state.
Declaration
Task Resume(IPackage package)
Parameters
Type | Name | Description |
---|---|---|
IPackage | package | The package to resume. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
Snap(IApplication)
Snaps the specified application.
Declaration
Task Snap(IApplication application)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | The application to snap. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
Suspend(IPackage)
Suspends the application.
Declaration
Task Suspend(IPackage package)
Parameters
Type | Name | Description |
---|---|---|
IPackage | package | The package to suspend. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
Terminate(IPackage)
Terminates the application.
Declaration
Task Terminate(IPackage package)
Parameters
Type | Name | Description |
---|---|---|
IPackage | package | The package to terminate. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
Unconstrain(IPackage)
Unconstrains the application.
Declaration
Task Unconstrain(IPackage package)
Parameters
Type | Name | Description |
---|---|---|
IPackage | package | The package to unconstrain. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
Uninstall(IPackage)
Uninstalls a package.
Declaration
Task Uninstall(IPackage package)
Parameters
Type | Name | Description |
---|---|---|
IPackage | package | The package to uninstall. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |
Unsnap(IPackage)
Unsnaps the application.
Declaration
Task Unsnap(IPackage package)
Parameters
Type | Name | Description |
---|---|---|
IPackage | package | The package to unsnap. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task for the asynchronous operation. |