Class UpdateDraftBodyAction Stay organized with collections Save and categorize content based on your preferences.
UpdateDraftBodyAction
Updates the email draft body.
Methods
Method | Return type | Brief description |
---|---|---|
add | Update | Adds the specified content to the draft body. |
set | Update | Sets theUpdate of this update action on the draft body. |
Detailed documentation
addUpdateContent(content, contentType)
Adds the specified content to the draft body. The type of thecontent
is specified byContent
.
Parameters
Name | Type | Description |
---|---|---|
content | String | The content to insert to the email draft. |
content | Content | The content type of the content to be inserted. |
Return
Update
— This object, for chaining.
setUpdateType(updateType)
Sets theUpdate
of this update action on the draft body. For example,inserting content at the start, end, or cursor position of the draft body.
Parameters
Name | Type | Description |
---|---|---|
update | Update | The type of update to be performed on an email draft. |
Return
Update
— This object, for chaining.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.