public class YandexMetricaConfig
extends java.lang.Object
YandexMetricaConfig.Builder.| Modifier and Type | Class and Description |
|---|---|
static class |
YandexMetricaConfig.Builder
Builds a new
YandexMetricaConfig object. |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
apiKey
Unique identifier of app in AppMetrica
|
java.lang.String |
appVersion
Application version
|
java.lang.Boolean |
crashReporting
Indicates whether to capture and send reports about crashes automatically
|
java.util.Map<java.lang.String,java.lang.String> |
errorEnvironment
Error environment to be set after initialization
|
java.lang.Boolean |
firstActivationAsUpdate
Indicates, whether first activation of AppMetrica should be considered as app update or new app install.
|
java.lang.Boolean |
installedAppCollecting
Deprecated.
Set value will always be ignored (considered false).
Indicates whether installed apps list should be collected
|
android.location.Location |
location
Location to be used as location for reports of AppMetrica
|
java.lang.Boolean |
locationTracking
Indicates whether AppMetrica should include location information within its reports
|
java.lang.Boolean |
logs
Indicates whether AppMetrica logging enabled
|
java.lang.Integer |
maxReportsInDatabaseCount
Maximum number of reports to store in database.
|
java.lang.Boolean |
nativeCrashReporting
Indicates whether to capture and send reports about native crashes automatically
|
PreloadInfo |
preloadInfo
Preload info for tracking preloaded apps
|
java.lang.Integer |
sessionTimeout
Duration of AppMetrica session
|
java.lang.Boolean |
statisticsSending
Indicates whether statistics should be sent to the AppMetrica server.
|
java.lang.String |
userProfileID
The ID of the user profile.
|
| Modifier | Constructor and Description |
|---|---|
protected |
YandexMetricaConfig(YandexMetricaConfig.Builder builder) |
protected |
YandexMetricaConfig(YandexMetricaConfig source) |
| Modifier and Type | Method and Description |
|---|---|
static YandexMetricaConfig.Builder |
createBuilderFromConfig(YandexMetricaConfig source) |
static YandexMetricaConfig |
fromJson(java.lang.String json) |
static YandexMetricaConfig.Builder |
newConfigBuilder(java.lang.String apiKey)
Creates the new instance of
YandexMetricaConfig.Builder |
java.lang.String |
toJson() |
@NonNull public final java.lang.String apiKey
newConfigBuilder(String)@Nullable public final java.lang.String appVersion
@Nullable public final java.lang.Integer sessionTimeout
@Nullable public final java.lang.Boolean crashReporting
Indicates whether to capture and send reports about crashes automatically
true if we need to send reports about crashes, otherwise false
@Nullable public final java.lang.Boolean nativeCrashReporting
Indicates whether to capture and send reports about native crashes automatically
true if we need to send reports about native crashes,
otherwise false
@Nullable public final android.location.Location location
@Nullable public final java.lang.Boolean locationTracking
Indicates whether AppMetrica should include location information within its reports
true if allow Yandex Metrica to record location information in reports,
otherwise false
@Nullable public final java.lang.Boolean installedAppCollecting
Indicates whether installed apps list should be collected
true if installed apps list should be collected, otherwise false
@Nullable public final java.lang.Boolean logs
Indicates whether AppMetrica logging enabled
true if enabled, false if not
YandexMetricaConfig.Builder.withLogs()@Nullable public final PreloadInfo preloadInfo
@Nullable public final java.lang.Boolean firstActivationAsUpdate
Indicates, whether first activation of AppMetrica should be considered as app update or new app install.
true if first call of YandexMetrica.activate(android.content.Context, com.yandex.metrica.YandexMetricaConfig) should be considered as app update,
false otherwise.
@Nullable public final java.lang.Boolean statisticsSending
Indicates whether statistics should be sent to the AppMetrica server.
@Nullable public final java.lang.Integer maxReportsInDatabaseCount
YandexMetricaDefaultValues.DEFAULT_MAX_REPORTS_IN_DATABASE_COUNT.
Must be in range
[YandexMetricaDefaultValues.DEFAULT_MAX_REPORTS_COUNT_LOWER_BOUND;
YandexMetricaDefaultValues.DEFAULT_MAX_REPORTS_COUNT_UPPER_BOUND].
If not, closest possible value will be used.@Nullable public final java.util.Map<java.lang.String,java.lang.String> errorEnvironment
@Nullable public final java.lang.String userProfileID
protected YandexMetricaConfig(@NonNull
YandexMetricaConfig.Builder builder)
protected YandexMetricaConfig(@NonNull
YandexMetricaConfig source)
@NonNull public static YandexMetricaConfig.Builder newConfigBuilder(@NonNull java.lang.String apiKey)
YandexMetricaConfig.BuilderapiKey - API_KEY - unique identifier of app in AppMetrica.java.lang.IllegalArgumentException - if apiKey is null, empty or has invalid format.public static YandexMetricaConfig fromJson(java.lang.String json)
@NonNull public static YandexMetricaConfig.Builder createBuilderFromConfig(@NonNull YandexMetricaConfig source)
public java.lang.String toJson()