YMMReporterConfiguration class
This class contains the extended immutable configuration of the reporter.
Use the YMMMutableReporterConfiguration class to change the configuration of a reporter.
Instance methods
init?(apiKey:) | Initializes an instance of the class |
init?(apiKey:) | Initializes an instance of the class |
Properties
apiKey | API key that differs from the main application API key. |
logs | The flag indicating that the logging of the reporter is enabled. |
maxReportsInDatabaseCount | The maximum number of error reports stored in the internal DB. |
sessionTimeout | Session timeout in seconds. |
statisticsSending | A flag indicating that sending statistics is enabled. |
userProfileID | Sets the ID of the user profile ( |
apiKey | API key that differs from the main application API key. |
logs | The flag indicating that the logging of the reporter is enabled. |
maxReportsInDatabaseCount | The maximum number of error reports stored in the internal DB. |
sessionTimeout | Session timeout in seconds. |
statisticsSending | A flag indicating that sending statistics is enabled. |
userProfileID | Sets the ID of the user profile ( |
Method descriptions
init?(apiKey:)
init?(apiKey: String)
Initializes an instance of the class YMMReporterConfiguration
with the specified API key.
apiKey | API key that differs from the main application API key. |
apiKey | API key that differs from the main application API key. |
Returns:
The instance of the YMMReporterConfiguration
class.
Property descriptions
apiKey
var apiKey: String? { get }
API key that differs from the main application API key.
logs
var logs: Bool { get }
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.
maxReportsInDatabaseCount
var maxReportsInDatabaseCount: UInt { get }
The maximum number of error reports stored in the internal DB.
The allowed range of values is [100; 10000]. Values outside this range are automatically replaced with values from the nearest range limits.
Default value: 1000.
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 YMMYandexMetricaConfiguration.maxReportsInDatabaseCount.sessionTimeout
var sessionTimeout: UInt { get }
Session timeout in seconds.
The default value is 10
(minimum allowed value).
statisticsSending
var statisticsSending: Bool { get }
A flag indicating that sending statistics is enabled.
The default value is true
.
true
— Sending statistics is enabled.false
— Sending statistics is disabled.
userProfileID
var userProfileID: String?
Sets the ID of the user profile (ProfileID
) when activated.
ProfileID
string is 200 characters.