Class UpdateDraftBodyAction
UpdateDraftBodyAction
E-posta taslağı gövdesini günceller.
Ayrıntılı dokümanlar
addUpdateContent(content, contentType)
Belirtilen içeriği taslak gövdesine ekler. content
türü, ContentType
tarafından belirtilir.
Parametreler
Ad | Tür | Açıklama |
content | String | E-posta taslağına eklenecek içerik. |
contentType | ContentType | Eklenecek içeriğin içerik türü. |
Return
UpdateDraftBodyAction
: Zincirleme için bu nesne.
setUpdateType(updateType)
Taslak metninde bu güncelleme işleminin UpdateDraftBodyType
değerini belirler. Örneğin, taslak gövdesinin başına, sonuna veya imleç konumuna içerik ekleme.
Parametreler
Return
UpdateDraftBodyAction
: Zincirleme için bu nesne.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-12-03 UTC.
[null,null,["Son güncelleme tarihi: 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"]]