We just launched Compose Examples featuring over 150+ components! Check it out →

sensitiveContent

Common

Modifier in Compose Ui

This modifier hints that the composable renders sensitive content (i.e. username, password, credit card etc) on the screen, and the content should be protected during screen share in supported environments.

Last updated:

Installation

dependencies {
   implementation("androidx.compose.ui:ui:1.8.0-alpha04")
}

Overloads


fun Modifier.sensitiveContent(isContentSensitive: Boolean = true): Modifier

Parameters

namedescription
isContentSensitivewhether the content is sensitive or not. Defaults to true.
by @alexstyl