Migration guide to branch 3.x.x
This is an archived version of documentation. You can find the current documentation for all platforms here.
This guide contains examples that demonstrate the differences between the SDK versions 2.80 and 3.0.0. This section only covers methods that do not have backward compatibility.
Added
- Reporter activation
- Called before any actions with the reporter. If you already get the reporter, activation cannot change the parameters. Example:
YandexMetrica.activateReporter(this, ReporterConfig.newConfigBuilder(API_KEY) .withSessionTimeout(100) .build());
Copied to clipboard - Profiles
- Added the following classes to work with user profiles:
Added the following methods to the
YandexMetrica
class for user profiles:Added the following methods to the
IReporter
interface for user profiles: - Revenue
- Added the following classes for revenue tracking:
Added the following method to the
YandexMetrica
class:Added the following method to
IReporter
interface:
Renamed
Version 2.80 | Version 3.0.0 |
---|---|
| |
| |
| |
Version 2.80 | Version 3.0.0 |
---|---|
| |
| |
| |
Version 2.80 | Version 3.0.0 |
---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Version 2.80 | Version 3.0.0 |
---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Version 2.80 | Version 3.0.0 |
---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
Version 2.80 | Version 3.0.0 |
---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
Deleted
Version 2.80 | Version 3.0.0 |
---|---|
Activation with the API key
| You can activate the library using the extended configuration |
Setting the session length.
| You can set the session timeout using the extended configuration |
Monitoring app crashes.
| You can enable the crash reporting using the extended configuration |
Setting the app version
| You can set the application version using the extended configuration |
Enabling logs
| You can enable the library logging using the extended configuration |
Enabling sending data about pre-installed apps.
| You can enable sending data about pre-installed apps using the extended configuration |
Setting environment values.
| Deleted. |
Version 2.80 | Version 3.0.0 |
---|---|
Activation with the API key
| You can activate the library using the extended configuration |
Setting the session length.
| You can set the session timeout using the extended configuration |
Monitoring app crashes.
| You can enable the crash reporting using the extended configuration |
Setting the app version
| You can set the application version using the extended configuration |
Enabling logs
| You can enable the library logging using the extended configuration |
Enabling sending data about pre-installed apps.
| You can enable sending data about pre-installed apps using the extended configuration |
Setting environment values.
| Deleted. |