Skip to content

NotificationIconExtensions

Namespace: Hex1b

Assembly: Hex1b.dll

Extension methods for creating notification icon widgets in widget contexts.

csharp
public static class NotificationIconExtensions

Inheritance

ObjectNotificationIconExtensions

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 : Hex1bWidget

NotificationIcon<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

Released under the MIT License.