When using native rendering mode, SDK can record sensitive data in your application.
In order to protect user privacy, Smartlook can be configured so that the sensitive data is not recorded.
On this platform, selectively hiding sensitive parts of the screen is not possible. To hide sensitive data, screen capturing must be stopped completely by using no recording mode. Alternatively, using one of the wireframe rendering modes records screen in a schematic way, showing no user data.
No Rendering
Sometimes the whole screen consists of sensitive data. In these cases it is beneficial to not record any screen data. This can be done by switching to no_rendering
rendering mode:
Smartlook.setRenderingMode(SmartlookRenderingMode.no_rendering);
Some screens can leak sensitive data even through automatically detected touch events. More about this issue in secure custom keyboard example.
When an application is no longer displaying sensitive data, the screen rendering mode can be set back to the preferred variant:
Smartlook.setRenderingMode(SmartlookRenderingMode.native);
WebViews
By default, WebViews are hidden because of possible sensitive content exposure. To enable recording, add javascriptMode: JavascriptMode.unrestricted
to the WebView widget.
To enable or disable WebView recording:
//To enable WebView recording:
Smartlook.enableWebviewRecording(true);
//To disable WebView recording:
Smartlook.enableWebviewRecording(false);