Privacy helpers
Privacy helpers control how specific views appear in session replay.
Screeb automatically masks password fields and elements whose contentDescription or resource name contains sensitive keywords (password, cvv, pin, ssn, etc.). Use these helpers for custom sensitive content.
import app.screeb.sdk.screebMaskText
import app.screeb.sdk.screebNoCapture
import app.screeb.sdk.screebId
binding.cardNumberInput.screebMaskText()
binding.personalInfoSection.screebNoCapture()
binding.checkoutButton.screebId("checkout_button")
| Helper | Description |
|---|---|
View.screebMaskText() | Masks text content in session replay. Its children are not captured. |
View.screebNoCapture() | Excludes the view and its children from session replay capture entirely. |
View.screebId("stable_id") | Sets a stable element ID, used by Screeb In-App Messaging (IAM) product tours to target views that don't have a resource ID or that must survive layout refactoring. |
tip
Use snake_case identifiers that describe the element's purpose, not its position. These IDs are used by your product and design team to build IAM product tours, so keep them stable across app versions.