ReporterConfig class
com.yandex.metrica
public class ReporterConfig
This class contains the extended configuration of the reporter.
Nested classes
class | ReporterConfig.Builder |
class | ReporterConfig.Builder |
Methods
ReporterConfig.Builder | newConfigBuilder(@NonNull String apiKey) | Creates the ReporterConfig.Builder instance — a constructor for the extended configuration of the reporter. |
ReporterConfig.Builder | newConfigBuilder(@NonNull String apiKey) | Creates the ReporterConfig.Builder instance — a constructor for the extended configuration of the reporter. |
Fields
String | apiKey | API key that differs from the main application API key. |
Boolean | logs | The flag indicating that the logging of the reporter is enabled. |
Integer | sessionTimeout | Session timeout in seconds. |
Boolean | statisticsSending | A flag indicating that sending statistics is enabled. |
String | apiKey | API key that differs from the main application API key. |
Boolean | logs | The flag indicating that the logging of the reporter is enabled. |
Integer | sessionTimeout | Session timeout in seconds. |
Boolean | statisticsSending | 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.
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
.
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
.
true
— Sending statistics is enabled.false
— Sending statistics is disabled.