מגדיר דגל כדי לציין שהפעולה הזו שינתה את מצב הנתונים הקיים. לדוגמה, אם הפעולה יצרה משימה או עדכנה פרטים ליצירת קשר. כשהדגל הזה מוגדר כ-true, שירותים כמו Gmail יכולים לנסות לנקות את כל נתוני המצב ששמורים במטמון המשויכים לפעולה הזו.
פרמטרים
שם
סוג
תיאור
stateChanged
Boolean
אם הפעולה הזו שינתה את נתוני המצב הקיימים. ברירת המחדל היא false.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2024-12-02 (שעון UTC)."],[[["`ActionResponseBuilder` helps create responses for actions within Google Apps Script cards."],["It provides methods to define navigation, notifications, open links, and signal state changes when an action is performed."],["The `build()` method finalizes the response and ensures its validity before execution."],["Methods like `setNavigation()`, `setNotification()`, `setOpenLink()`, and `setStateChanged()` allow customization of the action's outcome."],["Using an `ActionResponseBuilder` streamlines the process of defining how user interactions within a card trigger specific application behaviors."]]],["The `ActionResponseBuilder` constructs `ActionResponse` objects. Key actions include: `build()`, which creates and validates the response; `setNavigation()`, which sets a navigation action; `setNotification()`, which sets a notification to display; `setOpenLink()`, which sets a URL for navigation; and `setStateChanged()`, which flags if the action modifies existing data. Each setter method allows for chaining and accepts specific object types like `Navigation`, `Notification`, or `OpenLink` to define the response.\n"]]