SDK can use different methods of capturing screen image data. These are called rendering modes.
Set rendering mode
A rendering mode can be set on SDK setup, e.g.:
Analytics.SetupOptions smartlookSetupOptions = new Analytics.SetupOptions(
renderingMode: Analytics.RenderingMode.Wireframe,
renderingModeOption: Analytics.RenderingModeOption.IconBlueprint
);
Smartlook.Analytics.Setup("API_KEY", smartlookSetupOptions);
Or at anytime during an application run by using thew following:
public static void SetRenderingMode(RenderingMode renderingMode, RenderingModeOption? renderingModeOption = null)
Rendering modes available are following:
public enum RenderingMode : uint
{
Native = 0,
Wireframe = 1,
NoRendering = 2,
}
NoRendering
mode does not record any screen data, this is beneficial on screens that include sensitive data, read more.
Current rendering mode
Currently active rendering mode can be obtained by calling:
public static RenderingMode CurrentRenderingMode
Set rendering mode option
Wireframe
rendering mode can be further configured by RenderingModeOption
.
The rendering mode option can be set on setup:
Analytics.SetupOptions smartlookSetupOptions = new Analytics.SetupOptions(
renderingMode: Analytics.RenderingMode,
renderingModeOption: Analytics.RenderingModeOption
);
Smartlook.Analytics.Setup(API_KEY, smartlookSetupOptions);
Or at anytime during an application run by using the following:
public static void SetRenderingMode(RenderingMode renderingMode, RenderingModeOption? renderingModeOption = null)
Rendering mode options for Wireframe
rendering mode are following:
public enum RenderingModeOption : uint
{
None = 0,
Wireframe = 1,
Blueprint = 2,
IconBlueprint = 3,
}
Current rendering mode option
Currently active rendering mode option can be obtained by calling:
public static RenderingModeOption CurrentRenderingModeOption