InlineContent
class InlineContent(initialSize: Density.() -> IntSize? = null, placeholderVerticalAlign: PlaceholderVerticalAlign = AboveBaseline, content: @Composable Density.(alternateText: String) -> Unit)
A Composable that can be embedded inline in a RichTextString by passing to RichTextString.Builder.appendInlineContent.
Parameters
initialSize
Optional function to calculate the initial size of the content. Not specifying this may cause flicker.
placeholderVerticalAlign
Used to specify how a placeholder is vertically aligned within a text line.
Constructors
Link copied to clipboard
constructor(initialSize: Density.() -> IntSize? = null, placeholderVerticalAlign: PlaceholderVerticalAlign = AboveBaseline, content: @Composable Density.(alternateText: String) -> Unit)