WebEngineNotification QML Type
Encapsulates the data of an HTML5 web notification. More...
|Import Statement:||import QtWebEngine|
This type contains the information and API for HTML5 desktop and push notifications.
Web engine notifications are passed to the user in the WebEngineProfile::presentNotification() signal.
For more information about how to handle web notification, see the Notification Example.
direction : enumeration
The text direction for the notification's title and body.
|Items are laid out from left to right.|
|Items are laid out from right to left.|
|The direction to lay out items is determined automatically.|
language : string
The primary language for the notification's title and body.
Its value is a valid BCP 47 language tag, or the empty string.
message : string
The body of the notification message.
origin : url
The URL of the page sending the notification.
tag : string
The tag of the notification message.
New notifications that have the same tag and origin URL as an existing one should replace or update the old notification with the same tag.
title : string
The title of the notification.
This signal is emitted when the web page calls close steps for the notification, and it no longer needs to be shown.
Note: The corresponding handler is
Should be called by the notification platform when the notification is activated by the user.
Should be called by the notification platform when the notification is closed, either by the underlying platform or by the user.
Should be called by the notification platform when the notification has been shown to user.
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.