Function

clearAndSetSemantics

Clears the semantics of all descendants and sets new semantics.

clearAndSetSemantics

Source set: JvmAndAndroid
public fun RemoteModifier.clearAndSetSemantics(
    properties: RemoteSemanticsPropertyReceiver.() -> Unit
): RemoteModifier

Clears the semantics of all descendants and sets new semantics.

Parameters

properties A lambda to configure the semantics.

Return

a RemoteModifier that clears descendant semantics and applies properties

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: