Ustawia flagę, aby wskazać, że to działanie zmieniło istniejący stan danych. Na przykład wtedy, gdy działanie utworzyło zadanie lub zaktualizowało informacje kontaktowe. Gdy ten parametr ma wartość true, usługi takie jak Gmail mogą spróbować wyczyścić wszystkie dane stanu z pamięci podręcznej powiązane z tym działaniem.
Parametry
Nazwa
Typ
Opis
stateChanged
Boolean
Określa, czy to działanie zmieniło istniejące dane stanu. Wartość domyślna to fałsz.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]