Notification
You can display notifications to users using the show_notification()
method of Pyloid.
Usage
Parameters
title
(string): The title of the notificationmessage
(string): The content of the notification message
Example
This code displays a notification with the title "Notification" and the content "Notification message".
Setting a Notification Click Callback
You can set a callback function to be executed when a notification is clicked.
Usage
Parameters
callback_function
(function): The function to be executed when the notification is clicked
Example
This code sets up a notification click callback and displays a new notification. When the user clicks the notification, the message "The notification was clicked!" will be printed.
Last updated