Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newNotification :: (MonadDOM m, ToJSString title) => title -> Maybe NotificationOptions -> m Notification
- show :: MonadDOM m => Notification -> m ()
- close :: MonadDOM m => Notification -> m ()
- requestPermission :: (MonadDOM m, ToJSString callback) => Maybe (NotificationPermissionCallback callback) -> m ()
- getPermission :: (MonadDOM m, FromJSString result) => Notification -> m result
- click :: EventName Notification MouseEvent
- error :: EventName Notification UIEvent
- cLoseEvent :: EventName Notification CloseEvent
- display :: EventName Notification ondisplay
- showEvent :: EventName Notification MouseEvent
- setTag :: (MonadDOM m, ToJSString val) => Notification -> val -> m ()
- getTag :: (MonadDOM m, FromJSString result) => Notification -> m result
- newtype Notification = Notification {}
- gTypeNotification :: JSM GType
Documentation
newNotification :: (MonadDOM m, ToJSString title) => title -> Maybe NotificationOptions -> m Notification Source #
show :: MonadDOM m => Notification -> m () Source #
close :: MonadDOM m => Notification -> m () Source #
requestPermission :: (MonadDOM m, ToJSString callback) => Maybe (NotificationPermissionCallback callback) -> m () Source #
getPermission :: (MonadDOM m, FromJSString result) => Notification -> m result Source #
setTag :: (MonadDOM m, ToJSString val) => Notification -> val -> m () Source #
getTag :: (MonadDOM m, FromJSString result) => Notification -> m result Source #
newtype Notification Source #
Functions for this inteface are in JSDOM.Notification. Base interface functions are in:
Instances
PToJSVal Notification Source # | |
Defined in JSDOM.Types pToJSVal :: Notification -> JSVal # | |
PFromJSVal Notification Source # | |
Defined in JSDOM.Types pFromJSVal :: JSVal -> Notification # | |
ToJSVal Notification Source # | |
Defined in JSDOM.Types toJSVal :: Notification -> JSM JSVal # toJSValListOf :: [Notification] -> JSM JSVal # | |
FromJSVal Notification Source # | |
Defined in JSDOM.Types fromJSVal :: JSVal -> JSM (Maybe Notification) # fromJSValUnchecked :: JSVal -> JSM Notification # fromJSValListOf :: JSVal -> JSM (Maybe [Notification]) # fromJSValUncheckedListOf :: JSVal -> JSM [Notification] # | |
MakeObject Notification Source # | |
Defined in JSDOM.Types makeObject :: Notification -> JSM Object # | |
IsEventTarget Notification Source # | |
Defined in JSDOM.Types | |
IsGObject Notification Source # | |
Defined in JSDOM.Types typeGType :: Notification -> JSM GType |