Class UpdateDraftBodyAction
详细文档
addUpdateContent(content, contentType)
setUpdateType(updateType)
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-03。
[null,null,["最后更新时间 (UTC):2024-12-03。"],[[["`UpdateDraftBodyAction` updates the body of an email draft."],["It provides methods to add content (`addUpdateContent`) and set the update type (`setUpdateType`)."],["`addUpdateContent` inserts specified content, determined by `ContentType`, into the email draft."],["`setUpdateType` defines how the content is inserted, such as at the beginning, end, or cursor position, using `UpdateDraftBodyType`."]]],["`UpdateDraftBodyAction` modifies an email draft's body. It provides two key methods: `addUpdateContent` and `setUpdateType`. `addUpdateContent` inserts specified content, defined by a string and content type, into the draft. `setUpdateType` determines where the content is inserted, such as the start, end, or cursor position, using `UpdateDraftBodyType`. Both methods return the `UpdateDraftBodyAction` object, enabling method chaining.\n"]]