ReporterConfig.Builder class
com.yandex.mertica
public class ReporterConfig.Builder
Builder class for ReporterConfig.
Methods
ReporterConfig | build() | Creates an extended configuration instance ReporterConfig. |
ReporterConfig.Builder | withLogs() | Enables logging the activity of the AppMetrica library |
ReporterConfig.Builder | withSessionTimeout(int sessionTimeout) | Sets the session timeout in seconds. |
ReporterConfig.Builder | withStatisticsSending(boolean value) | Enables/disables sending statistics to the AppMetrica server. |
ReporterConfig | build() | Creates an extended configuration instance ReporterConfig. |
ReporterConfig.Builder | withLogs() | Enables logging the activity of the AppMetrica library |
ReporterConfig.Builder | withSessionTimeout(int sessionTimeout) | Sets the session timeout in seconds. |
ReporterConfig.Builder | withStatisticsSending(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.
sessionTimeout | Session timeout in seconds. The default value is |
sessionTimeout | Session timeout in seconds. The default value is |
Returns:
The instance of the ReporterConfig.Builder
class.
withStatisticsSending
public ReporterConfig.Builder withStatisticsSending(boolean value)
Enables/disables sending statistics to the AppMetrica server.
value | A flag indicating that sending statistics is enabled. The default value is Possible values:
|
value | A flag indicating that sending statistics is enabled. The default value is Possible values:
|
Returns:
The instance of the ReporterConfig.Builder
class.