AI-generated Key Takeaways
-
ComposeActionResponse is a response object for callback methods in Gmail add-ons that compose draft messages when a UI element is selected.
-
This object is distinct from the compose actions used to extend the compose UI.
-
The
printJson()
method is available for debugging, returning a String representation of the object.
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 |
---|---|---|
print | 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