Class UpdateDraftBodyAction
อัปเดตฉบับร่างเนื้อหาการดำเนินการ
อัปเดตเนื้อหาอีเมลฉบับร่าง
เอกสารประกอบโดยละเอียด
addUpdateContent(content, contentType)
เพิ่มเนื้อหาที่ระบุลงในเนื้อหาร่าง ประเภทของ content
จะระบุโดย
ContentType
พารามิเตอร์
ชื่อ | ประเภท | คำอธิบาย |
content | String | เนื้อหาที่จะแทรกลงในอีเมลฉบับร่าง |
contentType | ContentType | ประเภทเนื้อหาของเนื้อหาที่จะแทรก |
รีเทิร์น
UpdateDraftBodyAction
— ออบเจ็กต์นี้สําหรับการต่อเชื่อม
setUpdateType(updateType)
ตั้งค่า UpdateDraftBodyType
ของการดําเนินการอัปเดตนี้ในเนื้อหาร่าง เช่น การแทรกเนื้อหาที่จุดเริ่มต้น จุดสิ้นสุด หรือตำแหน่งเคอร์เซอร์ของเนื้อหาร่าง
พารามิเตอร์
รีเทิร์น
UpdateDraftBodyAction
— ออบเจ็กต์นี้สําหรับการต่อเชื่อม
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-03 UTC
[null,null,["อัปเดตล่าสุด 2024-12-03 UTC"],[[["`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"]]