manualScreenViewDedupEnabled method

HackleConfigBuilder manualScreenViewDedupEnabled(
  1. bool manualScreenViewDedupEnabled
)

Set whether to deduplicate repeated screen views set via setCurrentScreen.

When disabled, calling setCurrentScreen with the current screen publishes $page_view again, along with $engagement's $engagement_time_ms property once the minimum engagement duration is met. Automatic screen tracking always deduplicates regardless of this setting.

Defaults to true.

Implementation

HackleConfigBuilder manualScreenViewDedupEnabled(
    bool manualScreenViewDedupEnabled) {
  _manualScreenViewDedupEnabled = manualScreenViewDedupEnabled;
  return this;
}