Configuration class

Constructors

Configuration.new({required String apiKey, int flushQueueSize = Constants.flushQueueSize, int flushIntervalMillis = Constants.flushIntervalMillis, String instanceName = '', bool optOut = false, LogLevel logLevel = LogLevel.warn, int? minIdLength, String? partnerId, int flushMaxRetries = Constants.flushMaxRetries, bool useBatch = false, ServerZone serverZone = ServerZone.us, String? serverUrl, int minTimeBetweenSessionsMillis = Constants.minTimeBetweenSessionsMillisUnset, DefaultTrackingOptions defaultTracking = const DefaultTrackingOptions(), TrackingOptions? trackingOptions, bool enableCoppaControl = false, bool flushEventsOnClose = true, int identifyBatchIntervalMillis = Constants.identifyBatchIntervalMillis, bool migrateLegacyData = true, bool locationListening = true, bool useAdvertisingIdForDeviceId = false, bool useAppSetIdForDeviceId = false, String? appVersion, String? deviceId, CookieOptions? cookieOptions, String identityStorage = 'cookie', String? userId, String? transport = 'fetch', bool fetchRemoteConfig = false, Autocapture autocapture = const AutocaptureOptions()})
Configuration for Amplitude instance.

Properties

apiKey String
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
appVersion String?
Web specific
getter/setter pair
autocapture Autocapture
Web specific
getter/setter pair
cookieOptions CookieOptions
Web specific
getter/setter pair
defaultTracking DefaultTrackingOptions
Mobile (iOS and Android) specific
getter/setter pair
deviceId String?
Applicable to Web and Android
getter/setter pair
enableCoppaControl bool
Mobile (iOS and Android) specific
getter/setter pair
fetchRemoteConfig bool
Web specific
getter/setter pair
flushEventsOnClose bool
Mobile (iOS and Android) specific
getter/setter pair
flushIntervalMillis int
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
flushMaxRetries int
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
flushQueueSize int
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
identifyBatchIntervalMillis int
Mobile (iOS and Android) specific
getter/setter pair
identityStorage String
Web specific
getter/setter pair
instanceName String
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
locationListening bool
Android specific
getter/setter pair
logLevel LogLevel
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
migrateLegacyData bool
Mobile (iOS and Android) specific
getter/setter pair
minIdLength int?
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
minTimeBetweenSessionsMillis int
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
optOut bool
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
partnerId String?
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverUrl String?
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
serverZone ServerZone
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
trackingOptions TrackingOptions
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
transport String?
Web specific
getter/setter pair
useAdvertisingIdForDeviceId bool
Android specific
getter/setter pair
useAppSetIdForDeviceId bool
Android specific
getter/setter pair
useBatch bool
Applicable to all platforms (iOS, Android, Web)
getter/setter pair
userId String?
Web specific
getter/setter pair

Methods

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

Operators

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