To call an enum, you call its parent class, name, and property. For example,
CardService.UpdateDraftBodyType.IN_PLACE_INSERT.
Properties
Property
Type
Description
IN_PLACE_INSERT
Enum
Default. Update actions insert content at the current cursor position, replacing any selected
content.
INSERT_AT_START
Enum
Update actions insert content at the start of message body.
INSERT_AT_END
Enum
Update actions insert content at the end of the message body. If an email signature is present,
in Gmail on the web, the update action inserts after the user's signature. In the Gmail mobile
app, the update action inserts before the user's signature.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-11-01 UTC."],[[["`UpdateDraftBodyType` is an enum used within `UpdateDraftBodyAction` to specify how the draft body of a message is modified."],["It offers three options: `IN_PLACE_INSERT` (default, replaces selected content or inserts at cursor), `INSERT_AT_START` (inserts at the beginning), and `INSERT_AT_END` (inserts at the end, respecting email signatures)."],["To use these options, call them using the format: `CardService.UpdateDraftBodyType.[Property Name]`."]]],[]]