Class AppMetricaConfig
AppMetricaConfig.Builder.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionAdditional configsfinal BooleanIndicates whether AppMetrica should include advertising identifiers withing its reportsfinal BooleanIndicates whether ANR monitoring is enabled.final IntegerThe timeout in seconds at which the fact of ANR is recorded.final StringUnique identifier of app in AppMetricafinal IntegerBuild number of applicationApplication environment to be set after initializationfinal BooleanWhether app open auto tracking is enabled Default value is true.final StringApplication versionfinal BooleanIndicates whether to capture and send reports about crashes automaticallyfinal ICrashTransformerCustom crash transformer.Custom hosts for startup configfinal BooleanIndicates whether data should be sent to the AppMetrica server.final StringThe device type based on screen size.final IntegerTimeout for sending reportsError environment to be set after initializationfinal BooleanIndicates, whether first activation of AppMetrica should be considered as app update or new app install.final android.location.LocationLocation to be used as location for reports of AppMetricafinal BooleanIndicates whether AppMetrica should include location information within its reportsfinal BooleanIndicates whether AppMetrica logging enabledfinal IntegerMaximum buffer size for reportsfinal IntegerMaximum number of reports to store in database.final BooleanIndicates whether to capture and send reports about native crashes automaticallyfinal PreloadInfoPreload info for tracking preloaded appsfinal BooleanWhether revenue auto tracking is enabled Default value is true.final BooleanIndicates whether sessions auto tracking is enabled.final IntegerDuration of AppMetrica sessionfinal StringThe ID of the user profile. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAppMetricaConfig(AppMetricaConfig source) Clone constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic AppMetricaConfigCreatesAppMetricaConfigfrom JSON string.static AppMetricaConfig.BuildernewConfigBuilder(String apiKey) Creates the new instance ofAppMetricaConfig.BuildertoJson()SerializesAppMetricaConfigto json
-
Field Details
-
apiKey
Unique identifier of app in AppMetrica- See Also:
-
appVersion
Application version- See Also:
-
sessionTimeout
Duration of AppMetrica session- See Also:
-
crashReporting
Indicates whether to capture and send reports about crashes automatically
trueif we need to send reports about crashes, otherwisefalse- See Also:
-
nativeCrashReporting
Indicates whether to capture and send reports about native crashes automatically
trueif we need to send reports about native crashes, otherwisefalse- See Also:
-
location
@Nullable public final android.location.Location locationLocation to be used as location for reports of AppMetrica- See Also:
-
locationTracking
Indicates whether AppMetrica should include location information within its reports
trueif allow AppMetrica to record location information in reports, otherwisefalse- See Also:
-
advIdentifiersTracking
Indicates whether AppMetrica should include advertising identifiers withing its reports
@{code true} if allow AppMetrica to record advertising identifiers in reports, otherwise
false -
logs
Indicates whether AppMetrica logging enabled
trueif enabled,falseif not- See Also:
-
preloadInfo
Preload info for tracking preloaded apps- See Also:
-
firstActivationAsUpdate
Indicates, whether first activation of AppMetrica should be considered as app update or new app install.
trueif first call ofAppMetrica.activate(android.content.Context, io.appmetrica.analytics.AppMetricaConfig)should be considered as app update,falseotherwise. -
dataSendingEnabled
Indicates whether data should be sent to the AppMetrica server.
-
maxReportsInDatabaseCount
Maximum number of reports to store in database. Default value is 1000. Must be in range [100; 10000]. If not, closest possible value will be used.- See Also:
-
errorEnvironment
Error environment to be set after initialization- See Also:
-
userProfileID
The ID of the user profile. NOTE: The string value can contain up to 200 characters.- See Also:
-
revenueAutoTrackingEnabled
Whether revenue auto tracking is enabled Default value is true.- See Also:
-
sessionsAutoTrackingEnabled
Indicates whether sessions auto tracking is enabled.
Setting this flag to true is equivalent to invokingAppMetrica.enableActivityAutoTracking(android.app.Application)Default value is true. -
appOpenTrackingEnabled
Whether app open auto tracking is enabled Default value is true. Set this flag to true instead of reporting deeplinks manually fromActivity.onCreate(android.os.Bundle)viaAppMetrica.reportAppOpen(android.app.Activity)NOTE: Auto tracking will only capture links that open activity. Those that are clicked on while activity is opened will be ignored. To track them callAppMetrica.reportAppOpen(android.content.Intent)fromActivity.onNewIntent(android.content.Intent)- See Also:
-
deviceType
The device type based on screen size.Allowed values are from
PredefinedDeviceTypes. Using other values may cause events to not appear in AppMetrica reports. Other values are only allowed if explicitly supported by official documentation.- See Also:
-
appBuildNumber
Build number of application- See Also:
-
dispatchPeriodSeconds
Timeout for sending reports- See Also:
-
maxReportsCount
Maximum buffer size for reports- See Also:
-
appEnvironment
Application environment to be set after initialization- See Also:
-
crashTransformer
Custom crash transformer. Applied to crashes before reporting. If null, crashes are not transformed.
-
anrMonitoring
Indicates whether ANR monitoring is enabled.
trueif enabled, otherwise,false -
anrMonitoringTimeout
-
customHosts
Custom hosts for startup config- See Also:
-
additionalConfig
Additional configs- See Also:
-
-
Constructor Details
-
AppMetricaConfig
Clone constructor- Parameters:
source-AppMetricaConfigto clone
-
-
Method Details
-
newConfigBuilder
Creates the new instance ofAppMetricaConfig.Builder- Parameters:
apiKey- API_KEY - unique identifier of app in AppMetrica.- Returns:
- builder of AppMetricaConfig
- Throws:
IllegalArgumentException- ifapiKeyis null, empty or has invalid format.- See Also:
-
fromJson
CreatesAppMetricaConfigfrom JSON string.- Parameters:
json-Stringrepresenting AppMetricaConfig- Returns:
AppMetricaConfigparsed from giver json
-
toJson
SerializesAppMetricaConfigto json- Returns:
Stringrepresenting thisAppMetricaConfig
-