PackageCatalog.PackageStatusChanged Event

Definition

Indicates that an app package has been removed or updated

// Register
event_token PackageStatusChanged(TypedEventHandler<PackageCatalog, PackageStatusChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void PackageStatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
PackageCatalog::PackageStatusChanged_revoker PackageStatusChanged(auto_revoke_t, TypedEventHandler<PackageCatalog, PackageStatusChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<PackageCatalog,PackageStatusChangedEventArgs> PackageStatusChanged;
function onPackageStatusChanged(eventArgs) { /* Your code */ }
packageCatalog.addEventListener("packagestatuschanged", onPackageStatusChanged);
packageCatalog.removeEventListener("packagestatuschanged", onPackageStatusChanged);
- or -
packageCatalog.onpackagestatuschanged = onPackageStatusChanged;
Public Custom Event PackageStatusChanged As TypedEventHandler(Of PackageCatalog, PackageStatusChangedEventArgs) 

Event Type

TypedEventHandler<PackageCatalog,PackageStatusChangedEventArgs>

Remarks

If the PackageCatalog is obtained using OpenForCurrentPackage, the app only receives package events for itself or its related packages such as optional packages.

To get package events for all of a user's packages, obtain the PackageCatalog using OpenForCurrentUser instead.

Applies to