textPart
Creates a new TextPart using the DSL builder.
Example:
val textPart = textPart {
text = "Hello, world!"
}Content copied to clipboard
Return
A new TextPart instance
Parameters
init
The lambda to configure the text part
Creates a new TextPart using the Java-friendly Consumer.
Return
A new TextPart instance
Parameters
init
The consumer to configure the text part