Class AppMetricaConfig
AppMetricaConfig.Builder
.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionAdditional configsfinal Boolean
Indicates whether AppMetrica should include advertising identifiers withing its reportsfinal Boolean
Indicates whether ANR monitoring is enabled.final Integer
The timeout in seconds at which the fact of ANR is recorded.final String
Unique identifier of app in AppMetricafinal Integer
Build number of applicationApplication environment to be set after initializationfinal Boolean
Whether app open auto tracking is enabled Default value is true.final String
Application versionfinal Boolean
Indicates whether to capture and send reports about crashes automaticallyfinal ICrashTransformer
Custom crash transformer.Custom hosts for startup configfinal Boolean
Indicates whether data should be sent to the AppMetrica server.final String
Device type based on screen size: phone, tablet, TVfinal Integer
Timeout for sending reportsError environment to be set after initializationfinal Boolean
Indicates, whether first activation of AppMetrica should be considered as app update or new app install.final android.location.Location
Location to be used as location for reports of AppMetricafinal Boolean
Indicates whether AppMetrica should include location information within its reportsfinal Boolean
Indicates whether AppMetrica logging enabledfinal Integer
Maximum buffer size for reportsfinal Integer
Maximum number of reports to store in database.final Boolean
Indicates whether to capture and send reports about native crashes automaticallyfinal PreloadInfo
Preload info for tracking preloaded appsfinal Boolean
Whether revenue auto tracking is enabled Default value is true.final Boolean
Indicates whether sessions auto tracking is enabled.final Integer
Duration of AppMetrica sessionfinal String
The ID of the user profile. -
Constructor Summary
ModifierConstructorDescriptionprotected
AppMetricaConfig
(AppMetricaConfig source) Clone constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic AppMetricaConfig
static AppMetricaConfig.Builder
newConfigBuilder
(String apiKey) Creates the new instance ofAppMetricaConfig.Builder
toJson()
SerializesAppMetricaConfig
to 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
true
if we need to send reports about crashes, otherwisefalse
-
nativeCrashReporting
Indicates whether to capture and send reports about native crashes automatically
true
if 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
true
if 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
true
if enabled,false
if 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.
true
if first call ofAppMetrica.activate(android.content.Context, io.appmetrica.analytics.AppMetricaConfig)
should be considered as app update,false
otherwise. -
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.
true
if enabled, otherwise,false
-
anrMonitoringTimeout
-
customHosts
Custom hosts for startup config -
additionalConfig
Additional configs
-
-
Constructor Details
-
AppMetricaConfig
Clone constructor- Parameters:
source
-AppMetricaConfig
to 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
- ifapiKey
is null, empty or has invalid format.- See Also:
-
fromJson
- Parameters:
json
-String
representing AppMetricaConfig- Returns:
AppMetricaConfig
parsed from giver json
-
toJson
SerializesAppMetricaConfig
to json- Returns:
String
representing thisAppMetricaConfig
-