---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://appmetrica.yandex.com.tr/docs/en/sdk/unity/analytics/methods.md
  - https://appmetrica.yandex.com.tr/docs/ru/sdk/unity/analytics/methods.md
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com.tr/docs/ru/llms.txt

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

В коде для обращения к AppMetrica используйте static методы из класса `Io.AppMetrica.AppMetrica`.

Более детальную информацию и справочник методов можно найти на [GitHub](https://github.com/appmetrica/appmetrica-unity-plugin/blob/main/Runtime/AppMetrica.cs).

<!-- ## Активация плагина

```csharp translate=no
void Activate([NotNull] AppMetricaConfig config);
```

## Отслеживание событий

```csharp translate=no
void ReportEvent([NotNull] string message);
void ReportEvent([NotNull] string message, [CanBeNull] string json);
```

## Отслеживание крэшей и ошибок

```csharp translate=no
void ReportError([NotNull] string message, [NotNull] Exception exception);
void ReportError([NotNull] string identifier, [CanBeNull] string message, [CanBeNull] Exception exception);
void ReportUnhandledException([NotNull] Exception exception);
```

## Отслеживание сессий

```csharp translate=no
void ResumeSession();
void PauseSession();
```

## Настройки AppMetrica

```csharp translate=no
void SetLocationTracking(bool enabled);
void SetLocation([CanBeNull] Location coordinates);
void SetUserProfileID([CanBeNull] string userProfileID);
```

## Отправка Revenue

```csharp translate=no
void ReportRevenue([NotNull] Revenue revenue);
```

## Отправка AdRevenue

```csharp translate=no
void ReportAdRevenue([NotNull] AdRevenue adRevenue);
```

## Отправка пользовательских профилей

```csharp translate=no
void ReportUserProfile([NotNull] UserProfile userProfile);
```

## Отправка сообщения об открытии приложения с помощью deeplink

```csharp translate=no
void ReportAppOpen([NotNull] string deeplink);
```

## Отключение отправки статистики

```csharp translate=no
void SetDataSendingEnabled(bool enabled);
```

## Принудительная отправка событий из буфера

```csharp translate=no
void SendEventsBuffer();
```

## Получение идентификаторов AppMetrica

```csharp translate=no
void RequestStartupParams([NotNull] StartupParamsDelegate action, [NotNull] IEnumerable<string> identifiers);
```

## Информация об используемой версии AppMetrica
 
```csharp translate=no
string GetLibraryVersion();
```

## Установка окружения ошибки

```csharp translate=no
void PutErrorEnvironmentValue([NotNull] string key, [CanBeNull] string value);
```

## См. также

- [Как включить отправку данных о местоположении пользователей?](https://appmetrica.yandex.com.tr/docs/ru/troubleshooting/troubleshooting.md#region)

-->

<!-- source: ru/_includes/feedback-button-3.md -->
Если вы не нашли ответ на свой вопрос, то вы можете задать его через форму обратной связи. Пожалуйста, опишите возникшую проблему как можно подробнее. Если возможно, приложите скриншот.

<a href="../../../troubleshooting/feedback-new">
  <span class="button">Написать в службу поддержки</span>
</a>

<a href="../../../troubleshooting/feedback-docs">
  <span class="button">Предложить улучшение для документации</span>
</a>
<!-- endsource: ru/_includes/feedback-button-3.md -->
