Skip to content

Commit 333294f

Browse files
committed
docs(change-manager): opExecuted
Assisted-by: Claude Opus 4.7 - initial docs
1 parent 634e330 commit 333294f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

AnkiDroid/src/main/java/com/ichi2/anki/observability/ChangeManager.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ object ChangeManager {
5353
* Called after a backend method invoked via col.op() or col.opWithProgress()
5454
* has modified the collection. Subscriber should inspect the changes, and update
5555
* the UI if necessary.
56+
*
57+
* @param changes see [OpChanges].
58+
* @param handler the initiator of the change. A subscriber may compare this against itself
59+
* to detect changes it caused, and skip its default handling in favour of more specific updates.
5660
*/
5761
fun opExecuted(
5862
changes: OpChanges,

0 commit comments

Comments
 (0)