testPreferences method
Future<void>
testPreferences(
)
Implementation
Future<void> testPreferences() async {
/// already done
// await smartlook.preferences.setRenderingMode(RenderingMode.native);
// await smartlook.preferences.setWebViewEnabled(true)
final eventTracking = smartlook.preferences.eventTracking;
await eventTracking.disableAll();
await eventTracking.enableAll();
await eventTracking.restoreDefault();
await eventTracking.interaction.setRageClickEnabled(true);
await eventTracking.interaction.setTrackUserInteraction(true);
final RenderingMode renderingMode = await smartlook.state.getRenderingMode();
assert(renderingMode == RenderingMode.native);
}