Class UpdateDraftBodyAction

UpdateDraftBodyAction

Updates the email draft body.

Methods

Method Return type Brief description
UpdateDraftBodyAction Adds the specified content to the draft body.
UpdateDraftBodyAction Sets the UpdateDraftBodyType 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 ContentType .

Parameters

Name Type Description
content
String The content to insert to the email draft.
contentType
ContentType The content type of the content to be inserted.

Return

UpdateDraftBodyAction — This object, for chaining.


setUpdateType(updateType)

Sets the UpdateDraftBodyType 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
updateType
UpdateDraftBodyType The type of update to be performed on an email draft.

Return

UpdateDraftBodyAction — This object, for chaining.