Class Notification
Represents a blueprint for a notification.
Assembly: Dalamud.dll
public sealed record Notification : INotification, IEquatable<Notification>
Implements:
Dalamud.Interface.ImGuiNotification.INotification, System.IEquatable<Dalamud.Interface.ImGuiNotification.Notification>
Properties
DefaultDuration
Gets the default value for Dalamud.Interface.ImGuiNotification.Notification.InitialDuration and Dalamud.Interface.ImGuiNotification.Notification.ExtensionDurationSinceLastInterest.
public static TimeSpan DefaultDuration { get; }
Content
Gets or sets the content body of the notification.
public string Content { get; set; }
Title
Gets or sets the title of the notification.
public string? Title { get; set; }
MinimizedText
Gets or sets the text to display when the notification is minimized.
public string? MinimizedText { get; set; }
Type
Gets or sets the type of the notification.
public NotificationType Type { get; set; }
Icon
Gets or sets the icon source, in case Dalamud.Interface.ImGuiNotification.INotification.IconTexture is not set.
public INotificationIcon? Icon { get; set; }
IconTexture
Gets or sets a texture that will be used in place of Dalamud.Interface.ImGuiNotification.INotification.Icon if set.
public ISharedImmediateTexture? IconTexture { get; set; }
HardExpiry
Gets or sets the hard expiry.
public DateTime HardExpiry { get; set; }
InitialDuration
Gets or sets the initial duration.
public TimeSpan InitialDuration { get; set; }
ExtensionDurationSinceLastInterest
Gets or sets the new duration for this notification once the mouse cursor leaves the window and the window is no longer focused.
public TimeSpan ExtensionDurationSinceLastInterest { get; set; }
ShowIndeterminateIfNoExpiry
Gets or sets a value indicating whether to show an indeterminate expiration animation if
Dalamud.Interface.ImGuiNotification.INotification.HardExpiry is set to System.DateTime.MaxValue.
public bool ShowIndeterminateIfNoExpiry { get; set; }
RespectUiHidden
Gets or sets a value indicating whether to respect the current UI visibility state.
public bool RespectUiHidden { get; set; }
Minimized
Gets or sets a value indicating whether the notification has been minimized.
public bool Minimized { get; set; }
UserDismissable
Gets or sets a value indicating whether the user can dismiss the notification by themselves.
public bool UserDismissable { get; set; }
Progress
Gets or sets the progress for the background progress bar of the notification.
public float Progress { get; set; }
Methods
ToString()
public override string ToString()
Returns
System.String
GetHashCode()
public override int GetHashCode()
Returns
System.Int32
Equals(object?)
public override bool Equals(object? obj)
Returns
System.Boolean
Parameters
| Type | Name |
|---|---|
System.Object | obj |
Equals(Notification?)
public bool Equals(Notification? other)
Returns
System.Boolean
Parameters
| Type | Name |
|---|---|
| Dalamud.Interface.ImGuiNotification.Notification | other |
Implements
- Dalamud.Interface.ImGuiNotification.INotification
System.IEquatable<Dalamud.Interface.ImGuiNotification.Notification>