PluginNotificationIcon14.1
Class in Unbroken.LaunchBox.Plugins.Services.Notifications
public sealed class PluginNotificationIcon
Selects the package image displayed for a plugin notification in LaunchBox surfaces. Presentation styles that use host-controlled system artwork may ignore this selection.
Remarks
Image resources follow the plugin packageresources/images naming convention. LaunchBox selects the best appearance and scale variant and falls back to the plugin's default icon when the requested resource is unavailable. No image is displayed when the package does not contain a valid default icon.
Constructors
PluginNotificationIconInitializes a selection for a named PNG resource from the plugin package.
PluginNotificationIcon
public PluginNotificationIcon(string resourceId)
Initializes a selection for a named PNG resource from the plugin package.
resourceId- The image resource identifier without a path, extension, appearance, or scale suffix.
Properties
DefaultGets a selection that uses the plugin's package icon, or no image when the package does not contain a valid icon.ResourceIdGets the named package image resource, or null when the plugin's default icon is selected.
Default
public static PluginNotificationIcon Default { get; }
Gets a selection that uses the plugin's package icon, or no image when the package does not contain a valid icon.
ResourceId
public string? ResourceId { get; }
Gets the named package image resource, or null when the plugin's default icon is selected.