Skip to main content

send_notification

Function send_notification 

Source
pub fn send_notification(
    notification_type: NotificationType,
    task_id: &str,
    task_title: &str,
    config: &NotificationConfig,
    ui_active: bool,
)
Expand description

Send a notification based on the notification type. Silently logs errors but never fails the calling operation.

ยงArguments

  • notification_type - The type of notification to send
  • task_id - The task identifier (for task-specific notifications)
  • task_title - The task title (for task-specific notifications)
  • config - Notification configuration
  • ui_active - Whether a foreground UI client is currently active (for suppression)