setIncludeBackgroundSessionsInMetrics static method

void setIncludeBackgroundSessionsInMetrics([
  1. bool includeBackgroundSessionsInMetrics = true
])

Enables opting out of background sessions being counted towards total sessions.

Set includeBackgroundSessionsInMetrics true if this session should be added to total sessions/DAUs when application state is inactive or background. This API needs to be called before starting session.

Implementation

static void setIncludeBackgroundSessionsInMetrics(
    [bool includeBackgroundSessionsInMetrics = true]) {
  flurryAgent?.setIncludeBackgroundSessionsInMetrics(
      includeBackgroundSessionsInMetrics);
}