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" View
s. 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 theView
sensitivity totrue
. - registering
View
as "whitelisted" is equivalent to setting theView
sensitivity tofalse
. - unregistering
View
from "blacklisted" is equivalent to setting theView
sensitivity tonull
.
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 theClass
sensitivity totrue
. - unregistering
Class
from "blacklisted" is equivalent to setting theClass
sensitivity tonull
.
No rendering
Pre API 2.0
Analytics.SetRenderingMode(RenderingMode.NoRendering);
API 2.0
Smartlook.Instance.preferences.RenderingMode = RenderingMode.NoRendering;