Installation and initialization

AppMetrica Xamarin is a plugin for using AppMetrica features if you are developing apps using Xamarin for Android and iOS.

The general flow of using the plugin is shown below:

The plugin is provided as projects containing the following libraries:

YandexMetricaPCL

This library implements an interface for working with cross-platform parts of the app. The library contains:

  • The general AppMetrica interface — IYandexMetrica.
  • The static proxy class YandexMetrica for working via this interface with an implementation for the current platform.
  • The stub YandexMetricaDummy (which implements the IYandexMetrica interface), used if no implementation has performed registration in the YandexMetrica proxy class.
YandexMetricaAndroid

The library contains an AAR file of the AppMetrica library, generated code for working with the methods of the library and the YandexMetricaImplementation class, which implements the IYandexMetrica interface.

YandexMetricaiOS

The library contains A files for the AppMetrica library, generated code for working with the methods of the library and the YandexMetricaImplementation class, which implements the IYandexMetrica interface.

Connecting AppMetrica to a project

To integrate AppMetrica in your project, you need to:

  1. Download and enable the plugin libraries. There are several ways to d