AI-generated Key Takeaways
-
UpdateDraftBodyAction is used to update the body of an email draft.
-
The
addUpdateContentmethod adds specified content to the draft body with a defined content type. -
The
setUpdateTypemethod determines how the content update is applied to the draft body, such as inserting at the start, end, or cursor.
Updates the email draft body.
Methods
| Method | Return type | Brief description |
|---|---|---|
add | Update | Adds the specified content to the draft body. |
set | Update | Sets the Update of this update action on the draft body. |
Detailed documentation
addUpdateContent(content, contentType)
Adds the specified content to the draft body. The type of the content is specified by
Content.
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 the Update 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.