summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2024-03-12 09:48:53 +0800
committerPo Lu <luangruo@yahoo.com>2024-03-12 09:48:53 +0800
commitd7ded996082503ca00546c220c7ce8d96e16b76a (patch)
treec134bf9471567f3a27be6814f117d09994987059 /doc
parentbf38783c32e794e46fd03210242f265f34257940 (diff)
downloademacs-d7ded996082503ca00546c220c7ce8d96e16b76a.tar.gz
Implement notification residency on Android
* doc/lispref/os.texi (Desktop Notifications): Document support for `:resident'. * java/org/gnu/emacs/EmacsService.java (cancelNotification): * src/android.c (android_init_emacs_service): * src/android.h (struct android_emacs_service): New function. * src/androidselect.c (android_notifications_notify_1) (Fandroid_notifications_notify): New parameter QCresident; save it within notification lists. (android_notification_deleted, android_notification_action): Adjust for changes to the format of notification lists and cancel non-resident notifications when an action is selected. (syms_of_androidselect): <QCresident>: New symbol.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/os.texi6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index ecd88a39489..65c5ed2b4cc 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -3244,11 +3244,13 @@ of parameters analogous to its namesake in
@item :on-action @var{on-action}
@item :on-cancel @var{on-cancel}
@item :actions @var{actions}
+@item :resident @var{resident}
These have the same meaning as they do when used in calls to
-@code{notifications-notify}.
+@code{notifications-notify}, except that no more than three non-default
+actions will be displayed.
@item :urgency @var{urgency}
-The set of values for @var{urgency} is the same as with
+The set of accepted values for @var{urgency} is the same as with
@code{notifications-notify}, but the urgency applies to all
notifications displayed with the defined @var{group}, except under
Android 7.1 and earlier.