Property

LocalBackgroundTextMeasurementExecutor

CompositionLocal that provides an Executor for background text processing to potentially get run on.

BackgroundTextMeasurementSample

@Sampled
@Composable
fun BackgroundTextMeasurementSample() {
    CompositionLocalProvider(
        LocalBackgroundTextMeasurementExecutor provides DefaultTextMeasurementExecutor
    ) {
        BasicText("Hello World!")
    }
}
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: