Class PackageNotificationUtils
Static utility class for managing package notifications for packages.
Inherited Members
Namespace: UnityEditor .XR.Management
Assembly: Unity.XR.Management.Editor.dll
Syntax
public static class PackageNotificationUtils
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 |
---|---|
IRead |
Remarks
This is a read-only dictionary and cannot be modified. To modify the dictionary, use the
Register
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 package |
Package |
notificationInfo | The Package |