feat(observer): add lv_obj_remove_from_subject (#6341)

This commit is contained in:
Gabor Kiss-Vamosi
2024-07-07 06:30:55 +02:00
committed by GitHub
parent 08c5308e08
commit f8c26ea150
4 changed files with 26 additions and 40 deletions

View File

@@ -171,13 +171,14 @@ Unsubscribe from a subject
.. code:: c
lv_observer_remove(observer)
//`observer` is the return value of `lv_subject_add_observer*`
lv_observer_remove(observer);
To unsubscribe from a subject with all widgets you can use:
To unsubscribe a widget from a given or all subject use:
.. code:: c
lv_subject_remove_obj(subject, obj)
lv_obj_remove_from_subject(obj, subject); //`subject` can be NULL to unsubcribe from all
.. _observer_subject_groups: