LaunchBoxContributors
On this page

PluginNotificationIcon14.1

Class in Unbroken.LaunchBox.Plugins.Services.Notifications

C#
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 package resources/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

PluginNotificationIcon

C#
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

C#
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

C#
public string? ResourceId { get; }
Gets the named package image resource, or null when the plugin's default icon is selected.