Sensitive data hiding

Blacklisted & Whitelisted views

Pre API 2.0

// Register sensitive view
Analytics.RegisterBlacklistedObject(object);

// Unregister sensitive view
Analytics.UnregisterBlacklistedObject(object);
  
// Register whitelisted view
Analytics.RegisterWhitelistedObject(object);

// Unregister whitelisted view
Analytics.UnregisterWhitelistedObject(object);

API 2.0

There are no longer lists of "blacklisted" and "whitelisted" Views. Sensitivity is explicitly set using a Boolean value.

// iOS
Smartlook.Instance.sensitivity.SetViewInstanceSensitivity(element, true);
// android
Smartlook.Instance.sensitivity.SetViewInstanceSensitivity(element, true);

The "mapping" of the older APIs to the 2.0 is as follows:

  • registering View as "blacklisted" is equivalent to setting the View sensitivity to true.
  • registering View as "whitelisted" is equivalent to setting the View sensitivity to false.
  • unregistering View from "blacklisted" is equivalent to setting the View sensitivity to null.

View sensitivity documentation.

Blacklisted classes

Pre API 2.0

// Did not exist before

API 2.0

There is no longer list of "blacklisted" classes. Sensitivity is explicitly set using a Boolean value.

//iOS
Smartlook.Instance.sensitivity.SetViewClassSensitivity<WebKit.WKWebView>(false);
//android
Smartlook.Instance.sensitivity.SetViewClassSensitivity<WebView>(false);

The "mapping" of the older APIs to the 2.0 is as follows:

  • registering Class as "blacklisted" is equivalent to setting the Class sensitivity to true.
  • unregistering Class from "blacklisted" is equivalent to setting the Class sensitivity to null.

Class sensitivity documentation.

No rendering

Pre API 2.0

Analytics.SetRenderingMode(RenderingMode.NoRendering);

API 2.0

Smartlook.Instance.preferences.RenderingMode = RenderingMode.NoRendering;

No rendering documentation.