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.

Compose Action Response

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
String Prints the JSON representation of this object.

Detailed documentation

print Json()

Prints the JSON representation of this object. This is for debugging only.

Return

String

Create a Mobile Website
View Site in Mobile | Classic
Share by: