| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Desktop.Portal.Notification
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 #
Constructors
| AddNotificationOptions | |
Fields
| |
Instances
| Show AddNotificationOptions Source # | |
Defined in Desktop.Portal.Notification Methods showsPrec :: Int -> AddNotificationOptions -> ShowS # show :: AddNotificationOptions -> String # showList :: [AddNotificationOptions] -> ShowS # | |
| Eq AddNotificationOptions Source # | |
Defined in Desktop.Portal.Notification Methods (==) :: AddNotificationOptions -> AddNotificationOptions -> Bool # (/=) :: AddNotificationOptions -> AddNotificationOptions -> Bool # | |
data NotificationPriority Source #
Constructors
| NotificationPriorityLow | |
| NotificationPriorityNormal | |
| NotificationPriorityHigh | |
| NotificationPriorityUrgent |
Instances
| Show NotificationPriority Source # | |
Defined in Desktop.Portal.Notification Methods showsPrec :: Int -> NotificationPriority -> ShowS # show :: NotificationPriority -> String # showList :: [NotificationPriority] -> ShowS # | |
| Eq NotificationPriority Source # | |
Defined in Desktop.Portal.Notification Methods (==) :: NotificationPriority -> NotificationPriority -> Bool # (/=) :: NotificationPriority -> NotificationPriority -> Bool # | |
data NotificationIcon Source #
Constructors
| NotificationIconThemed [Text] | |
| NotificationIconBytes ByteString |
Instances
| Show NotificationIcon Source # | |
Defined in Desktop.Portal.Notification Methods showsPrec :: Int -> NotificationIcon -> ShowS # show :: NotificationIcon -> String # showList :: [NotificationIcon] -> ShowS # | |
| Eq NotificationIcon Source # | |
Defined in Desktop.Portal.Notification Methods (==) :: NotificationIcon -> NotificationIcon -> Bool # (/=) :: NotificationIcon -> NotificationIcon -> Bool # | |
data NotificationButton Source #
Instances
| Show NotificationButton Source # | |
Defined in Desktop.Portal.Notification Methods showsPrec :: Int -> NotificationButton -> ShowS # show :: NotificationButton -> String # showList :: [NotificationButton] -> ShowS # | |
| Eq NotificationButton Source # | |
Defined in Desktop.Portal.Notification Methods (==) :: NotificationButton -> NotificationButton -> Bool # (/=) :: NotificationButton -> NotificationButton -> Bool # | |
addNotificationOptions Source #
Arguments
| :: Text | The id of the notification |
| -> AddNotificationOptions |
addNotification :: Client -> AddNotificationOptions -> IO () Source #
Remove Notification
newtype RemoveNotificationOptions Source #
Constructors
| RemoveNotificationOptions | |
Instances
| Show RemoveNotificationOptions Source # | |
Defined in Desktop.Portal.Notification Methods showsPrec :: Int -> RemoveNotificationOptions -> ShowS # show :: RemoveNotificationOptions -> String # showList :: [RemoveNotificationOptions] -> ShowS # | |
| Eq RemoveNotificationOptions Source # | |
Defined in Desktop.Portal.Notification Methods (==) :: RemoveNotificationOptions -> RemoveNotificationOptions -> Bool # (/=) :: RemoveNotificationOptions -> RemoveNotificationOptions -> Bool # | |
removeNotification :: Client -> RemoveNotificationOptions -> IO () Source #
Signals
handleNotificationActionInvoked :: Client -> NotificationActionInvokedCallback -> IO SignalHandler Source #
Listen for notification actions being invoked.