Class ComposeActionResponse
ComposeActionResponse
在 Gmail 外掛程式中,回應物件可能會從用於撰寫動作的回呼方法傳回。
const composeActionResponse =
CardService.newComposeActionResponseBuilder()
.setGmailDraft(GmailApp.createDraft('recipient', 'subject', 'body'))
.build();
內容詳盡的說明文件
printJson()
列印此物件的 JSON 表示法。這項設定僅供偵錯。
回攻員
String
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-21 (世界標準時間)。
[null,null,["上次更新時間:2024-12-21 (世界標準時間)。"],[[["`ComposeActionResponse` is used specifically for responses from callback methods that handle compose actions in Gmail add-ons."],["It's crucial to understand that this object is for actions that create draft messages, not for actions used for extending the compose UI."],["Developers use this object to structure the response when a UI element triggers a compose action, allowing the add-on to pre-fill a Gmail draft."],["The `printJson()` method assists in debugging by displaying the object's JSON representation."]]],[]]