Đặt cờ để cho biết hành động này đã thay đổi trạng thái dữ liệu hiện có. Ví dụ: nếu hành động đã tạo một việc cần làm hoặc cập nhật thông tin liên hệ. Khi cờ này được đặt thành đúng (true), các dịch vụ như Gmail có thể cố gắng xoá mọi dữ liệu trạng thái được lưu vào bộ nhớ đệm liên quan đến hành động này.
Tham số
Tên
Loại
Mô tả
stateChanged
Boolean
Liệu hành động này có thay đổi dữ liệu trạng thái hiện có hay không. Giá trị mặc định là sai.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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"]]