Class ComposeActionResponse
ComposeActionResponse
The response object that may be returned from a callback method for compose action in a Gmail add-on.
const composeActionResponse =
CardService.newComposeActionResponseBuilder()
.setGmailDraft(GmailApp.createDraft('recipient', 'subject', 'body'))
.build();
Methods
Method | Return type | Brief description |
printJson() | String | Prints the JSON representation of this object. |
Detailed documentation
printJson()
Prints the JSON representation of this object. This is for debugging only.
Return
String
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-26 UTC.
[null,null,["Last updated 2024-11-26 UTC."],[[["`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."]]],[]]