ReporterConfig class

Class contains the configuration of the reporter. You can set:

  • apiKey - API key other than the API key of the application;
  • appEnvironment - application environment to be set after initialization.
  • dataSendingEnabled - indicates whether sending statistics is enabled. The default value is true;
  • dispatchPeriodSeconds - timeout for sending reports.
  • logs - a sign that determines whether logging of the reporter's work is enabled. The default value is false.
  • maxReportsCount - maximum buffer size for reports.
  • maxReportsInDatabaseCount — the maximum number of events that can be stored in the database on the device before being sent to AppMetrica. The default value is 1000. Values in the range 100; 10000 are allowed. Values that do not fall within this interval will be automatically replaced with the value of the nearest interval boundary;
  • sessionTimeout — session timeout in seconds. The default value is 10 (the minimum allowed value);
  • userProfileID - user profile identifier (profileId) upon activation;

Constructors

ReporterConfig(String apiKey, {Map<String?, String?>? appEnvironment, bool? dataSendingEnabled, int? dispatchPeriodSeconds, bool? logs, int? maxReportsCount, int? maxReportsInDatabaseCount, int? sessionTimeout, String? userProfileID})
Creates an object of the ReporterConfig class - the reporter configuration constructor. apiKey is a required parameter.
const

Properties

apiKey String
final
appEnvironment Map<String?, String?>?
final
dataSendingEnabled bool?
final
dispatchPeriodSeconds int?
final
hashCode int
The hash code for this object.
no setterinherited
logs bool?
final
maxReportsCount int?
final
maxReportsInDatabaseCount int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionTimeout int?
final
userProfileID String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited