Class ComposeActionResponse

  • 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.

ComposeActionResponse

The response object that may be returned from a callback method for compose action in a Gmail add-on.

constcomposeActionResponse=
CardService.newComposeActionResponseBuilder()
.setGmailDraft(GmailApp.createDraft('recipient','subject','body'))
.build();

Methods

MethodReturn typeBrief description
printJson() StringPrints 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年12月02日 UTC.