Accessibility live region - Jetpack Compose

In Jetpack Compose, a live region can be set inside the semantics block modifier. To interrupt ongoing speech, also known as being assertive, use LiveRegionMode.Assertive. To wait for ongoing speech, also known as being polite, use LiveRegionMode.Polite.

Text(
    modifier = Modifier.semantics {
        liveRegion = LiveRegionMode.Polite // or LiveRegionMode.Assertive
    }
)