Enum UpdateDraftBodyType
UpdateDraftBodyType
An enum value that specifies the type of an UpdateDraftBodyAction
.
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 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]`."]]],[]]