Class ModifierExtensionsKt
-
- All Implemented Interfaces:
public final class ModifierExtensionsKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static SemanticsPropertyKey<Boolean>mpReplaySensitivePropKey
-
Method Summary
Modifier and Type Method Description final SemanticsPropertyKey<Boolean>getMpReplaySensitivePropKey()final static ModifiermpReplaySensitive(Modifier $self, Boolean isSensitive)Marks a Compose view as sensitive or safe for masking during session replay screenshots. -
-
Method Detail
-
getMpReplaySensitivePropKey
final SemanticsPropertyKey<Boolean> getMpReplaySensitivePropKey()
-
mpReplaySensitive
final static Modifier mpReplaySensitive(Modifier $self, Boolean isSensitive)
Marks a Compose view as sensitive or safe for masking during session replay screenshots.
This function adds metadata to the Modifier that informs the session replay library whether the associated Composable should be masked (e.g., to hide sensitive user information).
- Parameters:
isSensitive-trueto mark the view as sensitive and ensure it is masked in screenshots.falseto explicitly mark the view as safe and exclude it from masking.
- Returns:
A Modifier with the sensitivity flag applied.
Example usage:
Text( text = "Card Number: 1234 5678 9012 3456", modifier = Modifier.mpReplaySensitive(true) )
-
-
-
-