PySide6.QtWebEngineCore.QWebEngineNotification¶
- class QWebEngineNotification¶
- The - QWebEngineNotificationclass encapsulates the data of an HTML5 web notification. More…- Synopsis¶- Properties¶- Methods¶- def - direction()
- def - icon()
- def - language()
- def - matches()
- def - message()
- def - origin()
- def - tag()
- def - title()
 - Slots¶- Signals¶- def - closed()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- This class contains the information and API for HTML5 desktop and push notifications. - Web engine notifications are passed to the user through the custom handler provided with the - setNotificationPresenter()call.- For more information about how to handle web notification, see the Notification Example . - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property directionᅟ: Qt.LayoutDirection¶
 - This property holds The text direction for the notification’s title and body.. - Access functions:
 - property languageᅟ: str¶
 - This property holds The primary language for the notification’s title and body.. - Its value is a valid BCP 47 language tag, or the empty string. - Access functions:
 - property messageᅟ: str¶
 - This property holds The body of the notification message.. - See also - Access functions:
 - This property holds The URL of the page sending the notification.. - Access functions:
 - property tagᅟ: str¶
 - This property holds 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. - See also - Access functions:
 - property titleᅟ: str¶
 - This property holds The title of the notification.. - See also - Access functions:
 - click()¶
 - Creates and dispatches a JavaScript click event on notification. - Should be called by the notification platform when the notification is activated by the user. - close()¶
 - Creates and dispatches a JavaScript close event on notification. - Should be called by the notification platform when the notification is closed, either by the underlying platform or by the user. - closed()¶
 - This signal is emitted when the web page calls close steps for the notification, and it no longer needs to be shown. - direction()¶
- Return type:
 
 - Getter of property - directionᅟ.- Returns the icon to be shown with the notification. - If no icon is set by the sender, a null QImage is returned. - language()¶
- Return type:
- str 
 
 - Getter of property - languageᅟ.- matches(other)¶
- Parameters:
- other – - QWebEngineNotification
- Return type:
- bool 
 
 - Returns - trueif the two notifications belong to the same message chain. That is, if their- tag()and- origin()are the same. This means one is a replacement or an update of the- other.- message()¶
- Return type:
- str 
 
 - Getter of property - messageᅟ.- Getter of property - originᅟ.- show()¶
 - Creates and dispatches a JavaScript show event on notification. - Should be called by the notification platform when the notification has been shown to user. - tag()¶
- Return type:
- str 
 
 - Getter of property - tagᅟ.- title()¶
- Return type:
- str 
 
 - Getter of property - titleᅟ.