desktop_notifier.sync ===================== .. py:module:: desktop_notifier.sync .. autoapi-nested-parse:: Synchronous desktop notification API Classes ------- .. autoapisummary:: desktop_notifier.sync.DesktopNotifierSync Module Contents --------------- .. py:class:: DesktopNotifierSync(app_name = 'Python', app_icon = DEFAULT_ICON, notification_limit = None) A synchronous counterpart to :class:`desktop_notifier.main.DesktopNotifier` .. warning:: Callbacks on interaction with the notification will not work on macOS or Linux without a running event loop. .. py:property:: app_name :type: str The application name .. py:property:: app_icon :type: desktop_notifier.common.Icon | None The application icon .. py:method:: request_authorisation() See :meth:`desktop_notifier.main.DesktopNotifier.request_authorisation` .. py:method:: has_authorisation() See :meth:`desktop_notifier.main.DesktopNotifier.has_authorisation` .. py:method:: send_notification(notification) See :meth:`desktop_notifier.main.DesktopNotifier.send_notification` .. py:method:: send(title, message, urgency = Urgency.Normal, icon = None, buttons = (), reply_field = None, on_dispatched = None, on_clicked = None, on_dismissed = None, attachment = None, sound = None, thread = None, timeout = -1) See :meth:`desktop_notifier.main.DesktopNotifier.send` .. py:method:: get_current_notifications() See :meth:`desktop_notifier.main.DesktopNotifier.get_current_notifications` .. py:method:: clear(identifier) See :meth:`desktop_notifier.main.DesktopNotifier.clear` .. py:method:: clear_all() See :meth:`desktop_notifier.main.DesktopNotifier.clear_all` .. py:method:: get_capabilities() See :meth:`desktop_notifier.main.DesktopNotifier.get_capabilities`