CountlyConfig class
Methods
disableLocation ()
→ CountlyConfig
Call this to disable location tracking
enableCrashReporting ()
→ CountlyConfig
Call to enable uncaught crash reporting
enableManualSessionHandling ()
→ CountlyConfig
Enable manual session handling
enableRemoteConfigAutomaticTriggers ()
→ CountlyConfig
Used to provide user properties that would be sent as soon as possible
enableRemoteConfigValueCaching ()
→ CountlyConfig
Used to disable RC Value caching
enableTemporaryDeviceIDMode ()
→ CountlyConfig
enable temporary ID mode
enrollABOnRCDownload ()
→ CountlyConfig
This is used for enrolling user to AB testing on RC download
giveAllConsents ()
→ CountlyConfig
Used to give all consent at init time
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordDirectAttribution (String campaignType , String campaignData )
→ CountlyConfig
Report direct user attribution
recordIndirectAttribution (Map <String , String > attributionValues )
→ CountlyConfig
Report indirect user attribution
remoteConfigRegisterGlobalCallback (RCDownloadCallback callback )
→ CountlyConfig
Used to register global callback for RC
setAppKey (String appKey )
→ CountlyConfig
app key for the application being tracked; find in the Countly Dashboard under Management > Applications.
Mandatory field.
setConsentEnabled (List <String > consents )
→ CountlyConfig
Sets which features are enabled in case consent is required
setCustomCrashSegment (Map <String , dynamic > customCrashSegment )
→ CountlyConfig
Set custom crash segmentation which will be added to all recorded crashes
Map<String, dynamic> customCrashSegment
- crashSegment segmentation information. Accepted values are "Integer", "String", "Double", "Boolean"
setDeviceId (String deviceID )
→ CountlyConfig
unique ID for the device the app is running on.
setEventQueueSizeToSend (int threshold )
→ CountlyConfig
Set the threshold for event grouping. Event count that is below the
threshold will be sent on update ticks.
setGlobalViewSegmentation (Map <String , Object > segmentation )
→ CountlyConfig
Used to enable global view segmentation
setHttpPostForced (bool isForced )
→ CountlyConfig
Set to 'true' if you want HTTP POST to be used for all requests
setLocation ({String ? countryCode , String ? city , String ? gpsCoordinates , String ? ipAddress })
→ CountlyConfig
Set user location
String country_code
- ISO Country code for the user's country
String city
- Name of the user's city
String gpsCoordinates
- comma separate lat and lng values. For example, "56.42345,123.45325"
String ipAddress
- ip address
setLoggingEnabled (bool enabled )
→ CountlyConfig
Set to true of you want to enable countly internal debugging logs
those logs will be printed to the console
setMaxRequestQueueSize (int maxSize )
→ CountlyConfig
This flag limits the number of requests that can be stored in the request queue when the Countly server is unavailable or unreachable.
If the number of requests in the queue reaches the limit, the oldest requests in the queue will be dropped.
int maxSize
- Minimum value is "1".
int maxSize
- Default value is 1,000.
setParameterTamperingProtectionSalt (String salt )
→ CountlyConfig
Set the optional salt to be used for calculating the checksum of requested data which will be sent with each request, using the &checksum field
setRecordAppStartTime (bool recordAppStartTime )
→ CountlyConfig
Enables the recording of the app start time.
This is now deprecated, use CountlyConfig.apm.enableAppStartTimeTracking
instead
setRemoteConfigAutomaticDownload (bool enabled , dynamic callback (String ? error ) )
→ CountlyConfig
If enable, will automatically download newest remote config values.
enabled set true for enabling it
callback callback called after the update was done
setRequestDropAgeHours (int dropAgeHours )
→ CountlyConfig
This would set a time frame in which the requests older than the given hours would be dropped while sending a request
Ex: Setting this to 10 would mean any requests created more than 10 hours ago would be dropped if they were in the queue
int dropAgeHours
A positive integer. Requests older than the 'dropAgeHours' (with respect to now) would be dropped
setRequiresConsent (bool shouldRequireConsent )
→ CountlyConfig
Set if consent should be required
setServerURL (String serverURL )
→ CountlyConfig
URL of the Countly server to submit data to.
Mandatory field.
setStarRatingTextDismiss (String starRatingTextDismiss )
→ CountlyConfig
the shown dismiss button text for the shown star rating dialogs.
Currently implemented for Android only
setStarRatingTextMessage (String starRatingTextMessage )
→ CountlyConfig
the shown message text for the star rating dialogs.
setStarRatingTextTitle (String starRatingTextTitle )
→ CountlyConfig
the shown title text for the star rating dialogs.
Currently implemented for Android only
setUpdateSessionTimerDelay (int delay )
→ CountlyConfig
Sets the interval for the automatic session update calls
min value 1 (1 second),
max value 600 (10 minutes)
int delay
- delay in seconds
setUserProperties (Map <String , dynamic > userProperties )
→ CountlyConfig
Used to provide user properties that would be sent as soon as possible
toString ()
→ String
A string representation of this object.
inherited
countly_flutter_np 24.7.1