Class PackageNotificationUtils
Static utility class for managing package notifications for packages.
Namespace: UnityEditor.XR.Management
Syntax
public static class PackageNotificationUtils : object
Properties
registeredPackagesWithNotifications
Dictionary of packages that have notification to report. When a package is added to the project, that package will register itself with this container if it requires access to notification functionality.
Declaration
public static IReadOnlyDictionary<string, PackageNotificationInfo> registeredPackagesWithNotifications { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<String, PackageNotificationInfo> |
Remarks
This is a read-only dictionary and cannot be modified. To modify the dictionary, use the RegisterPackageNotificationInformation(String, PackageNotificationInfo) method.
Methods
RegisterPackageNotificationInformation(String, PackageNotificationInfo)
Registers a given package ID as having a notification and supplies that notification.
Declaration
public static void RegisterPackageNotificationInformation(string packageId, PackageNotificationInfo notificationInfo)
Parameters
Type | Name | Description |
---|---|---|
String | packageId | The metadata identifier for a given package packageId |
PackageNotificationInfo | notificationInfo | The PackageNotificationInfo for the package that corresponds to |