Class ComposeActionResponse
ComposeActionResponse
可能从 Gmail 插件中撰写操作的回调方法返回的响应对象。
<ph type="x-smartling-placeholder">
var composeActionResponse = CardService.newComposeActionResponseBuilder()
.setGmailDraft(GmailApp.createDraft("recipient", "subject", "body"))
.build();
详细文档
printJson()
输出此对象的 JSON 表示法。这仅用于调试。
返回
String
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-22。
[null,null,["最后更新时间 (UTC):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."]]],[]]