Show / Hide Table of Contents

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 Source

SupportedInteractions

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 Source

Constrain(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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

  • View Source
In This Article
Back to top Generated by DocFX