ReporterConfig class

com.yandex.metrica

public class ReporterConfig

This class contains the extended configuration of the reporter.

Nested classes

Methods

ReporterConfig.BuildernewConfigBuilder(@NonNull String apiKey)

Creates the ReporterConfig.Builder instance — a constructor for the extended configuration of the reporter.

Fields

StringapiKey

API key that differs from the main application API key.

Booleanlogs

The flag indicating that the logging of the reporter is enabled.

IntegersessionTimeout

Session timeout in seconds.

BooleanstatisticsSending

A flag indicating that sending statistics is enabled.

Method descriptions

newConfigBuilder

public static ReporterConfig.Builder newConfigBuilder(@NonNull String apiKey)

Creates the ReporterConfig.Builder instance — a constructor for the extended configuration of the reporter.

Parameters:
apiKey

API key that differs from the main application API key.

Returns:

The instance of the ReporterConfig.Builder class.

Field descriptions

apiKey

public final String apiKey

API key that differs from the main application API key.

logs

public final Boolean logs

The flag indicating that the logging of the reporter is enabled.

The default value is false.

Possible values:
  • true — Reporter logging is enabled.
  • false — Reporter logging is disabled.

sessionTimeout

public final Integer sessionTimeout

Session timeout in seconds.

The default value is 10 (minimum allowed value).

statisticsSending

public final Boolean statisticsSending

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.