Class UninstallModel
The model containing the logic for a specific uninstall.
Inheritance
Namespace: Phoenix.Applications.Deployment
Assembly: Phoenix.Plugin.AppDeployment.dll
Syntax
public class UninstallModel : BindableBase
Constructors
View SourceUninstallModel(UninstallModel)
Initializes a new instance of the UninstallModel class.
Declaration
public UninstallModel(UninstallModel cloneSource)
Parameters
Type | Name | Description |
---|---|---|
UninstallModel | cloneSource | The uninstall model to clone from. |
UninstallModel(ReadOnlyCollection<IDevice>)
Initializes a new instance of the UninstallModel class.
Declaration
public UninstallModel(ReadOnlyCollection<IDevice> targetDevices)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<IDevice> | targetDevices | The devices that the uninstall is targeting. |
Fields
View SourceNonSystemPackagesFilter
A package filter that only includes non-system packages.
Declaration
public static readonly PackageFilter NonSystemPackagesFilter
Field Value
Type | Description |
---|---|
PackageFilter |
Properties
View SourceDisplayName
Gets the long display name for the current launch.
Declaration
public string DisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
Expanded
Gets or sets a value indicating whether or not the window is expanded.
Declaration
public bool Expanded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MatchingPackages
Gets the matching packages between all the target devices.
Declaration
public ObservableCollection<IPackage> MatchingPackages { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<IPackage> |
RefreshingPackages
Gets or sets a value indicating whether or not the packages are currently refreshing.
Declaration
public bool RefreshingPackages { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SelectedPackage
Gets or sets the selected package.
Declaration
public IPackage SelectedPackage { get; set; }
Property Value
Type | Description |
---|---|
IPackage |
TargetDevices
Gets the target devices.
Declaration
public ObservableCollection<IDevice> TargetDevices { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<IDevice> |
UninstallLocked
Gets or sets a value indicating whether or not to lock the application combo box.
Declaration
public bool UninstallLocked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
View SourceChangeDeviceSelection(IEnumerable<IDevice>)
Changes the selected devices for a launch model to a new selection, and updates application choices based on the change.
Declaration
public async Task<bool> ChangeDeviceSelection(IEnumerable<IDevice> newDevices)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IDevice> | newDevices | The new devices being selected. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | Whether or not the change device selection was successful. |
RefreshMatchingPackages(Boolean)
Refreshes the matching packages for the devices.
Declaration
public async Task RefreshMatchingPackages(bool forceRecache)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | forceRecache | If true, forces the cache to rebuild upon request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that refreshes the matching packages between the devices. |
Uninstall()
Uninstalls the package.
Declaration
public async Task Uninstall()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task that runs the uninstall. |