Function

withDrawAnnotation

Associates drawAnnotation with the text appended while running block.

withDrawAnnotation

Source set: Common
public inline fun <R : Any> Builder.withDrawAnnotation(
    drawAnnotation: DrawAnnotation,
    block: Builder.() -> R,
): R

Associates drawAnnotation with the text appended while running block.

Parameters

drawAnnotation annotation that draws behind or over the appended text range
block function to run while drawAnnotation is active

Return

result of block

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: