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 StringDevice type based on screen size: phone, tablet, TVfinal 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 AppMetricaConfigstatic 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 -
sessionTimeout
Duration of AppMetrica session -
crashReporting
Indicates whether to capture and send reports about crashes automatically
trueif we need to send reports about crashes, otherwisefalse -
nativeCrashReporting
Indicates whether to capture and send reports about native crashes automatically
trueif we need to send reports about native crashes, otherwisefalse -
location
@Nullable public final android.location.Location locationLocation to be used as location for reports of AppMetrica -
locationTracking
Indicates whether AppMetrica should include location information within its reports
trueif allow AppMetrica to record location information in reports, otherwisefalse -
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 -
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
-
errorEnvironment
Error environment to be set after initialization -
userProfileID
The ID of the user profile. NOTE: The string value can contain up to 200 characters. -
revenueAutoTrackingEnabled
Whether revenue auto tracking is enabled Default value is true. -
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) -
deviceType
Device type based on screen size: phone, tablet, TV -
appBuildNumber
Build number of application -
dispatchPeriodSeconds
Timeout for sending reports -
maxReportsCount
Maximum buffer size for reports -
appEnvironment
Application environment to be set after initialization -
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 -
additionalConfig
Additional configs
-
-
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
- Parameters:
json-Stringrepresenting AppMetricaConfig- Returns:
AppMetricaConfigparsed from giver json
-
toJson
SerializesAppMetricaConfigto json- Returns:
Stringrepresenting thisAppMetricaConfig
-