ReporterConfig.Builder class

com.yandex.mertica

public class ReporterConfig.Builder

Builder class for ReporterConfig.

Methods

ReporterConfigbuild()

Creates an extended configuration instance ReporterConfig.

ReporterConfig.BuilderwithLogs()

Enables logging the activity of the AppMetrica library

ReporterConfig.BuilderwithSessionTimeout(int sessionTimeout)

Sets the session timeout in seconds.

ReporterConfig.BuilderwithStatisticsSending(boolean value)

Enables/disables sending statistics to the AppMetrica server.

Method descriptions

build

public ReporterConfig build()

Creates an extended configuration instance ReporterConfig.

Returns:

The instance of the ReporterConfig class.

withLogs

public YandexMetricaConfig.Builder withLogs()

Enables logging the activity of the AppMetrica library

Returns:

The instance of the ReporterConfig.Builder class.

withSessionTimeout

public ReporterConfig.Builder withSessionTimeout(int sessionTimeout)

Sets the session timeout in seconds.

Parameters:
sessionTimeout

Session timeout in seconds.

The default value is 10 (minimum allowed value).

Returns:

The instance of the ReporterConfig.Builder class.

withStatisticsSending

public ReporterConfig.Builder withStatisticsSending(boolean value)

Enables/disables sending statistics to the AppMetrica server.

Note. Disable sending statistics to the reporter does not affect the sending of data from the main API key. But disabling data sending for the main API key stops sending statistics from all reporters.
Parameters:
value

A flag indicating that sending statistics is enabled.

The default value is true.

Possible values:
  • true — Sending statistics is enabled.
  • false — Sending statistics is disabled.

Returns:

The instance of the ReporterConfig.Builder class.