Справочник методов

В коде для обращения к AppMetrica используйте AppMetrica.Instance.

Активация плагина
void ActivateWithConfiguration(YandexAppMetricaConfig config);
event ConfigUpdateHandler OnActivation;
YandexAppMetricaConfig? ActivationConfig { get; }
Запрос доступа к IDFA
void RequestTrackingAuthorization(Action<YandexAppMetricaRequestTrackingStatus> action);
Отслеживание событий
void ReportEvent(string message);
void ReportEvent(string message, string json);
void ReportEvent(string message, Dictionary<string, object> parameters);
Отслеживание крэшей и ошибок
[Obsolete("Метод устарел. Используйте вместо него ReportError(Exception exception, string condition)")]
void ReportError([NotNull] string condition, [CanBeNull] string stackTrace);
[Obsolete("Метод устарел. Используйте вместо него ReportError(string groupIdentifier, string condition, Exception exception)")]
void ReportError([NotNull] string groupIdentifier, [CanBeNull] string condition, [CanBeNull] string stackTrace);
void ReportError([NotNull] string groupIdentifier, [CanBeNull] string condition, [CanBeNull] Exception exception);
void ReportError([NotNull] Exception exception, [CanBeNull] string condition);
void ReportUnhandledException([NotNull] Exception exception);
void ReportErrorFromLogCallback([NotNull] string condition, [CanBeNull] string stackTrace);
Отслеживание сессий
void ResumeSession();
void PauseSession();
Настройки AppMetrica
void SetLocationTracking(bool enabled);
void SetLocation(YandexAppMetricaConfig.Coordinates? coordinates);
void SetUserProfileID(string userProfileID);
Отправка Revenue
void ReportRevenue(YandexAppMetricaRevenue revenue);
Отправка AdRevenue
void ReportAdRevenue(YandexAppMetricaAdRevenue adRevenue);
Отправка пользовательских профилей
void ReportUserProfile(YandexAppMetricaUserProfile userProfile);
Отправка referral URL установки приложения
void ReportReferralUrl (string referralUrl);
Отправка сообщения об открытии приложения с помощью deeplink
void ReportAppOpen (string deeplink);
Отключение отправки статистики
void SetStatisticsSending(bool enabled);
Принудительная отправка событий из буфера
void SendEventsBuffer();
Получение уникального идентификатора AppMetrica
void RequestAppMetricaDeviceID(Action<string, YandexAppMetricaRequestDeviceIDError?> action);
Информация об используемой версии AppMetrica
int LibraryApiLevel { get; }
string LibraryVersion { get; }
Установка окружения ошибки
void PutErrorEnvironmentValue(string key, string value);
Класс YandexAppMetricaAdRevenue
YandexAppMetricaAdRevenue(long adRevenueMicros, [NotNull] string currency)
YandexAppMetricaAdRevenue(double adRevenue, [NotNull] string currency)
YandexAppMetricaAdRevenue(decimal adRevenue, [NotNull] string currency)

decimal AdRevenue { get; private set; }
[NotNull] string Currency { get; private set; }
AdTypeEnum? AdType { get; set; }
[CanBeNull] string AdNetwork { get; set; }
[CanBeNull] string AdUnitId { get; set; }
[CanBeNull] string AdUnitName { get; set; }
[CanBeNull] string AdPlacementId { get; set; }
[CanBeNull] string AdPlacementName { get; set; }
[CanBeNull] string Precision { get; set; }
[CanBeNull] IDictionary<string, string> Payload { get; set; }
Класс YandexAppMetricaConfig
YandexAppMetricaConfig(string apiKey);

string ApiKey { get; private set; }
string AppVersion { get; set; }
Coordinates? Location { get; set; }
int? SessionTimeout { get; set; }
bool? CrashReporting { get; set; }
bool? LocationTracking { get; set; }
bool? Logs { get; set; }
bool? HandleFirstActivationAsUpdate { get; set; }
YandexAppMetricaPreloadInfo? PreloadInfo { get; set; }
bool? RevenueAutoTrackingEnabled { get; set; }
bool? StatisticsSending { get; set; }
bool? AppForKids { get; set; }
Класс YandexAppMetricaConfig.Coordinates
double Latitude { get; set; }
double Longitude { get; set; }
Класс YandexAppMetricaPreloadInfo
YandexAppMetricaPreloadInfo(string trackingId);
            
tring TrackingId { get; private set; }
Dictionary<string, string> AdditionalInfo { get; private set; }
Класс YandexAppMetricaRevenue
[Obsolete("Конструктор устарел. Используйте вместо него YandexAppMetricaRevenue(decimal priceDecimal, string currency)")]
YandexAppMetricaRevenue(double price, string currency);
YandexAppMetricaRevenue(decimal priceDecimal, string currency)

[Obsolete("Свойство устарело. Используйте вместо него PriceMicros.")]
double? Price { get; private set; }
decimal? PriceDecimal { get; private set; }
int? Quantity { get; set; }
string Currency { get; private set; }
string ProductID { get; set; }
YandexAppMetricaReceipt? Receipt { get; set; }
string Payload { get; set; }
Класс YandexAppMetricaReceipt
string Data { get; set; }
string Signature { get; set; }
string TransactionID { get; set; }
Класс YandexAppMetricaUserProfile
List<YandexAppMetricaUserProfileUpdate> GetUserProfileUpdates();
YandexAppMetricaUserProfile Apply(YandexAppMetricaUserProfileUpdate update);
YandexAppMetricaUserProfile ApplyFromArray(List<YandexAppMetricaUserProfileUpdate> updates);
Класс YandexAppMetricaAttribute
static YandexAppMetricaBirthDateAttribute BirthDate();
static YandexAppMetricaGenderAttribute Gender();
static YandexAppMetricaNameAttribute Name();
static YandexAppMetricaNotificationsEnabledAttribute NotificationsEnabled();
static YandexAppMetricaBooleanAttribute CustomBoolean(string key);
static YandexAppMetricaCounterAttribute CustomCounter(string key);
static YandexAppMetricaNumberAttribute CustomNumber(string key);
static YandexAppMetricaStringAttribute CustomString(string key);
Класс YandexAppMetricaBirthDateAttribute
YandexAppMetricaUserProfileUpdate WithAge(int age);
YandexAppMetricaUserProfileUpdate WithBirthDate(DateTime date);
YandexAppMetricaUserProfileUpdate WithBirthDate(int year);
YandexAppMetricaUserProfileUpdate WithBirthDate(int year, int month);
YandexAppMetricaUserProfileUpdate WithBirthDate(int year, int month, int day);
YandexAppMetricaUserProfileUpdate WithValueReset();
Класс YandexAppMetricaBooleanAttribute
YandexAppMetricaUserProfileUpdate WithValue(bool value);
YandexAppMetricaUserProfileUpdate WithValueIfUndefined(bool value);
YandexAppMetricaUserProfileUpdate WithValueReset();
Класс YandexAppMetricaCounterAttribute
YandexAppMetricaUserProfileUpdate WithDelta(double value);
Класс YandexAppMetricaGenderAttribute
YandexAppMetricaUserProfileUpdate WithValue(Gender value);
YandexAppMetricaUserProfileUpdate WithValueReset();
Класс YandexAppMetricaNameAttribute
YandexAppMetricaUserProfileUpdate WithValue(string value);
YandexAppMetricaUserProfileUpdate WithValueReset();
Класс YandexAppMetricaNotificationsEnabledAttribute
YandexAppMetricaUserProfileUpdate WithValue(bool value);
YandexAppMetricaUserProfileUpdate WithValueReset();
Класс YandexAppMetricaNumberAttribute
YandexAppMetricaUserProfileUpdate WithValue(double value);
YandexAppMetricaUserProfileUpdate WithValueIfUndefined(double value);
YandexAppMetricaUserProfileUpdate WithValueReset();
Класс YandexAppMetricaStringAttribute
YandexAppMetricaUserProfileUpdate WithValue(string value);
YandexAppMetricaUserProfileUpdate WithValueIfUndefined(string value);
YandexAppMetricaUserProfileUpdate WithValueReset();
Перечисление YandexAppMetricaAdRevenue.AdTypeEnum
Native, Banner, Rewarded, Interstitial, Mrec, Other

Подробнее о методах и интеграции AppMetrica в приложение в разделах документации для Android и iOS.