Hide sensitive data

When using autocapture, the CSQ SDK collects target text information about the element that was interacted with, as well as text data from UI elements further up in an element’s ancestry. However, some of these elements might contain sensitive user information, or Personal Data, that needs to be excluded from data capture.

There are three options for hiding sensitive data:

  • Disabling text capture
  • Per-view text masking
  • Ignoring interactions for specific views

You have the option to disable text capture for all events that are automatically captured. To do this, use the CSQ.maskTexts() API.

CSQ.maskTexts(true)
CSQ.start(this)

Masking text for specific views

Section titled Masking text for specific views

If you don’t want to disable all text capture for your app, you can take a more targeted approach of only masking text for specific views in your app that you know might contain sensitive data. When text is masked for a view, it will still have target text, but the actual text will be replaced with ****.

View.csqMaskContents(true)

Ignoring all interactions for specific views

Section titled Ignoring all interactions for specific views

If you find that certain interactions are prone to capturing sensitive data, or that a certain interaction might indicate sensitive information about a user during analysis, you have the option of ignoring all interactions on a per-view basis.

View.csqIgnoreInteractions(true)