Class ModifierExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • 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 -
        • true to mark the view as sensitive and ensure it is masked in screenshots.

        • false to explicitly mark the view as safe and exclude it from masking.

        If this modifier is not applied, the library will fall back to its default sensitivity detection logic, which automatically masks views based on the configuration provided during initialization.
        Returns:

        A Modifier with the sensitivity flag applied.

        Example usage:

        Text(
            text = "Card Number: 1234 5678 9012 3456",
            modifier = Modifier.mpReplaySensitive(true)
        )