diff options
Diffstat (limited to 'external/plyer/facades/email.py')
-rw-r--r-- | external/plyer/facades/email.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/external/plyer/facades/email.py b/external/plyer/facades/email.py new file mode 100644 index 0000000..6056a16 --- /dev/null +++ b/external/plyer/facades/email.py @@ -0,0 +1,23 @@ +class Email(object): + '''Email facade.''' + + def send(self, recipient=None, subject=None, text=None, + create_chooser=None): + '''Open an email client message send window, prepopulated with the + given arguments. + + :param recipient: Recipient of the message (str) + :param subject: Subject of the message (str) + :param text: Main body of the message (str) + :param create_chooser: Whether to display a program chooser to + handle the message (bool) + + .. note:: create_chooser is only supported on Android + ''' + self._send(recipient=recipient, subject=subject, text=text, + create_chooser=create_chooser) + + # private + + def _send(self, **kwargs): + raise NotImplementedError() |