MutableReporterConfiguration class

The mutable version of the ReporterConfiguration class with the advanced configuration of the reporter.

Properties

areLogsEnabled

Enables/disables logging the activity of the library.

dataSendingEnabled

Enables/disables sending statistics to the AppMetrica server.

dispatchPeriod

Time interval between sending events in seconds.

maxReportsCount

Sending events is triggered when the number of events reaches maxReportsCount.

maxReportsInDatabaseCount

The maximum number of error reports stored in the internal DB.

sessionTimeout

Sets the session timeout in seconds.

userProfileID

Sets the ID of the user profile (ProfileID) when activated.

Property descriptions

areLogsEnabled

var areLogsEnabled: Bool

Enables/disables logging the activity of the library.

Logging is disabled by default.

dataSendingEnabled

var dataSendingEnabled: Bool

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.

By default, sending is enabled.

dispatchPeriod

var dispatchPeriod: UInt

Time interval between sending events in seconds.

maxReportsCount

var maxReportsCount: UInt

Sending events is triggered when the number of events reaches maxReportsCount.

maxReportsInDatabaseCount

var maxReportsInDatabaseCount: UInt

The maximum number of error reports stored in the internal DB.

The allowed range of values is [100; 10,000]. Values outside this range are automatically replaced with values from the nearest range limits.

Default value: 1000.

Note

Separate databases are used for various apiKeys and independent limits on the number of events can be set for them. This parameter only affects the limitation for the corresponding apiKey. To change the maximum allowed number of events for other apiKeys, use AppMetricaConfiguration.maxReportsInDatabaseCount.

sessionTimeout

var sessionTimeout: UInt

Sets the session timeout in seconds.

The default value is 10 (minimum allowed value).

userProfileID

var userProfileID: String?

Sets the ID of the user profile (ProfileID) when activated.

Alert

The maximum length of the ProfileID string is 200 characters.