From f1e9c522d124816cf27d595aa7267756d8468516 Mon Sep 17 00:00:00 2001 From: DatGuy Date: Sat, 12 Aug 2023 13:40:16 +0300 Subject: [PATCH] docs: mention custom AUMID in relation to activation callback --- docs/advanced_usage.rst | 2 +- docs/interactable.rst | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/advanced_usage.rst b/docs/advanced_usage.rst index 692437c..4afd698 100644 --- a/docs/advanced_usage.rst +++ b/docs/advanced_usage.rst @@ -47,7 +47,7 @@ when the notification is pressed. # Send it toaster.show_toast(newToast) -.. note:: +.. warning:: Make sure your lambda/function takes an argument! The on_x fields pass data back to the callable. on_activated for instance returns :class:`~windows_toasts.events.ToastActivatedEventArgs`. Play different audio diff --git a/docs/interactable.rst b/docs/interactable.rst index ddc01c8..5d2b403 100644 --- a/docs/interactable.rst +++ b/docs/interactable.rst @@ -31,6 +31,9 @@ And we have buttons! We can't do much with them though, at least until we use on newToast.on_activated = activated_callback +.. note:: + To make sure the activation of the toast triggeres the callback following its relegation to the action center, you must use a `custom AUMID `_. + Input fields ~~~~~~~~~~~~