NotificationIconExtensions
Namespace: Hex1b
Assembly: Hex1b.dll
Extension methods for creating notification icon widgets in widget contexts.
csharp
public static class NotificationIconExtensionsInheritance
Object → NotificationIconExtensions
Methods
NotificationIcon<T>(WidgetContext<T>, string)
Creates a notification icon with a custom bell character.
Parameters:
context(WidgetContext<<T>>): The widget context.bell(String): The character or string to use as the bell icon (e.g., "🔔", "␇", "*").
Returns: NotificationIconWidget
A notification icon widget with the custom bell character.
csharp
public static NotificationIconWidget NotificationIcon<T>(this WidgetContext<T> context, string bell) where T : Hex1bWidgetNotificationIcon<T>(WidgetContext<T>)
Creates a notification bell icon that shows the unread count and toggles the notification drawer.
Parameters:
context(WidgetContext<<T>>): The widget context.
Returns: NotificationIconWidget
A notification icon widget.
csharp
public static NotificationIconWidget NotificationIcon<T>(this WidgetContext<T> context) where T : Hex1bWidget