Class ComposeActionResponse
ComposeActionResponse
Gmail 外掛程式中撰寫動作的回呼方法可能傳回的回應物件。
var composeActionResponse = CardService.newComposeActionResponseBuilder()
.setGmailDraft(GmailApp.createDraft("recipient", "subject", "body"))
.build();
內容詳盡的說明文件
printJson()
列印這個物件的 JSON 表示法。此功能僅適用於偵錯。
回攻員
String
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-22 (世界標準時間)。
[null,null,["上次更新時間:2024-08-22 (世界標準時間)。"],[[["`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."]]],[]]