Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AddNotificationOptions = AddNotificationOptions {}
- data NotificationPriority
- data NotificationIcon
- data NotificationButton = NotificationButton {}
- addNotificationOptions :: Text -> AddNotificationOptions
- addNotification :: Client -> AddNotificationOptions -> IO ()
- newtype RemoveNotificationOptions = RemoveNotificationOptions {}
- removeNotification :: Client -> RemoveNotificationOptions -> IO ()
- type NotificationActionInvokedCallback = Text -> Text -> Maybe Variant -> IO ()
- handleNotificationActionInvoked :: Client -> NotificationActionInvokedCallback -> IO SignalHandler
Add Notification
data AddNotificationOptions Source #
AddNotificationOptions | |
|
Instances
Show AddNotificationOptions Source # | |
Defined in Desktop.Portal.Notification showsPrec :: Int -> AddNotificationOptions -> ShowS # show :: AddNotificationOptions -> String # showList :: [AddNotificationOptions] -> ShowS # | |
Eq AddNotificationOptions Source # | |
Defined in Desktop.Portal.Notification |
data NotificationPriority Source #
NotificationPriorityLow | |
NotificationPriorityNormal | |
NotificationPriorityHigh | |
NotificationPriorityUrgent |
Instances
Show NotificationPriority Source # | |
Defined in Desktop.Portal.Notification showsPrec :: Int -> NotificationPriority -> ShowS # show :: NotificationPriority -> String # showList :: [NotificationPriority] -> ShowS # | |
Eq NotificationPriority Source # | |
Defined in Desktop.Portal.Notification (==) :: NotificationPriority -> NotificationPriority -> Bool # (/=) :: NotificationPriority -> NotificationPriority -> Bool # |
data NotificationIcon Source #
Instances
Show NotificationIcon Source # | |
Defined in Desktop.Portal.Notification showsPrec :: Int -> NotificationIcon -> ShowS # show :: NotificationIcon -> String # showList :: [NotificationIcon] -> ShowS # | |
Eq NotificationIcon Source # | |
Defined in Desktop.Portal.Notification (==) :: NotificationIcon -> NotificationIcon -> Bool # (/=) :: NotificationIcon -> NotificationIcon -> Bool # |
data NotificationButton Source #
Instances
Show NotificationButton Source # | |
Defined in Desktop.Portal.Notification showsPrec :: Int -> NotificationButton -> ShowS # show :: NotificationButton -> String # showList :: [NotificationButton] -> ShowS # | |
Eq NotificationButton Source # | |
Defined in Desktop.Portal.Notification (==) :: NotificationButton -> NotificationButton -> Bool # (/=) :: NotificationButton -> NotificationButton -> Bool # |
addNotificationOptions Source #
:: Text | The id of the notification |
-> AddNotificationOptions |
addNotification :: Client -> AddNotificationOptions -> IO () Source #
Remove Notification
newtype RemoveNotificationOptions Source #
Instances
Show RemoveNotificationOptions Source # | |
Defined in Desktop.Portal.Notification showsPrec :: Int -> RemoveNotificationOptions -> ShowS # show :: RemoveNotificationOptions -> String # showList :: [RemoveNotificationOptions] -> ShowS # | |
Eq RemoveNotificationOptions Source # | |
Defined in Desktop.Portal.Notification |
removeNotification :: Client -> RemoveNotificationOptions -> IO () Source #
Signals
handleNotificationActionInvoked :: Client -> NotificationActionInvokedCallback -> IO SignalHandler Source #
Listen for notification actions being invoked.