summaryrefslogtreecommitdiff
path: root/external/plyer/facades/notification.py
diff options
context:
space:
mode:
authorLivio Recchia <recchialivio@libero.it>2020-02-10 23:06:34 +0100
committerLivio Recchia <recchialivio@libero.it>2020-02-10 23:06:34 +0100
commit9a13903a2f7d3a65fdf15a65fb59cccd622e2066 (patch)
tree9403b7dff39eb5e5d7fa0f79efb69b496add4c4b /external/plyer/facades/notification.py
parent11cc316b74d5f3f283413a33e7693b314741aa4a (diff)
downloadmanachat-9a13903a2f7d3a65fdf15a65fb59cccd622e2066.tar.gz
manachat-9a13903a2f7d3a65fdf15a65fb59cccd622e2066.tar.bz2
manachat-9a13903a2f7d3a65fdf15a65fb59cccd622e2066.tar.xz
manachat-9a13903a2f7d3a65fdf15a65fb59cccd622e2066.zip
Initial commit
Diffstat (limited to 'external/plyer/facades/notification.py')
-rw-r--r--external/plyer/facades/notification.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/external/plyer/facades/notification.py b/external/plyer/facades/notification.py
new file mode 100644
index 0000000..3a477e9
--- /dev/null
+++ b/external/plyer/facades/notification.py
@@ -0,0 +1,26 @@
+class Notification(object):
+ '''Notification facade.
+ '''
+
+ def notify(self, title='', message='', app_name='', app_icon='',
+ timeout=10):
+ '''Send a notification.
+
+ :param title: Title of the notification
+ :param message: Message of the notification
+ :param app_name: Name of the app launching this notification
+ :param app_icon: Icon to be displayed along with the message
+ :param timeout: time to display the message for, defaults to 10
+ :type title: str
+ :type message: str
+ :type app_name: str
+ :type app_icon: str
+ :type timeout: int
+ '''
+ self._notify(title=title, message=message, app_icon=app_icon,
+ app_name=app_name, timeout=timeout)
+
+ # private
+
+ def _notify(self, **kwargs):
+ raise NotImplementedError("No usable implementation found!")