Interface IActiveNotification
Represents an active notification.
Remarks​
Not to be implemented by plugins.
Assembly: Dalamud.dll​
public interface IActiveNotification : INotification
Properties​
Id​
Gets the ID of this notification.
long Id { get; }
Remarks​
This value does not change.
CreatedAt​
Gets the time of creating this notification.
DateTime CreatedAt { get; }
Remarks​
This value does not change.
EffectiveExpiry​
Gets the effective expiry time.
DateTime EffectiveExpiry { get; }
Remarks​
Contains System.DateTime.MaxValue if the notification does not expire.
DismissReason​
Gets the reason how this notification got dismissed. null if not dismissed.
NotificationDismissReason? DismissReason { get; }
Remarks​
This includes when the hide animation is being played.
Methods​
DismissNow()​
Dismisses this notification.
void DismissNow()
Remarks​
If the notification has already been dismissed, this function does nothing.
ExtendBy(TimeSpan)​
Extends this notifiation.
void ExtendBy(TimeSpan extension)
Parameters​
| Type | Name | Description |
|---|---|---|
System.TimeSpan | extension | The extension time. |
Remarks​
This does not override Dalamud.Interface.ImGuiNotification.INotification.HardExpiry.
Events​
Dismiss​
Invoked upon dismissing the notification.
event Action<INotificationDismissArgs> Dismiss
Event Type​
System.Action<Dalamud.Interface.ImGuiNotification.EventArgs.INotificationDismissArgs>
Remarks​
The event callback will not be called, if it gets dismissed after plugin unload.
Click​
Invoked upon clicking on the notification.
event Action<INotificationClickArgs> Click
Event Type​
System.Action<Dalamud.Interface.ImGuiNotification.EventArgs.INotificationClickArgs>
Remarks​
Note that this function may be called even after Dalamud.Interface.ImGuiNotification.IActiveNotification.Dismiss has been invoked.
DrawActions​
Invoked upon drawing the action bar of the notification.
event Action<INotificationDrawArgs> DrawActions
Event Type​
System.Action<Dalamud.Interface.ImGuiNotification.EventArgs.INotificationDrawArgs>
Remarks​
Note that this function may be called even after Dalamud.Interface.ImGuiNotification.IActiveNotification.Dismiss has been invoked.