Справочник методов
Внимание.
Развитие и поддержка плагина прекращены. Корректная работа SDK не гарантируется.
- Интерфейс IYandexMetrica
-
// Event tracking. void ReportEvent(string message); void ReportEvent(string message, IDictionary parameters); void ReportError(string message, Exception exception); // AppMetrica settings. void SetLocation(Coordinates coordinates); void SetLocationTracking(bool enabled); // Information about the version of AppMetrica used. int LibraryApiLevel { get; } string LibraryVersion { get; } // Force sending events from the buffer. void SendEventsBuffer(); // Disable sending statistics. void SetStatisticsSending(bool enabled); // Revenue tracking. void ReportRevenue(YandexAppMetricaRevenue revenue); // Getting the AppMetrica device ID. void RequestAppMetricaDeviceID(Action<String, YandexAppMetricaRequestDeviceIDError?> action); // Setting user profile ID. void SetUserProfileID(string userProfileID); // Sending user profiles. void ReportUserProfile(YandexMetricaUserProfile userProfile);
- Класс 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? InstalledAppCollecting { get; set; } bool? StatisticsSending { get; set; } bool? HandleFirstActivationAsUpdate { get; set; } YandexAppMetricaPreloadInfo? PreloadInfo { get; set; }
- Класс YandexAppMetricaConfig.Coordinates
-
double Latitude { get; set; } double Longitude { get; set; }
- Класс YandexAppMetricaPreloadInfo
-
YandexAppMetricaPreloadInfo(string trackingId); string TrackingId { get; private set; } Dictionary<string, string> AdditionalInfo { get; private set; }
- Класс YandexAppMetricaRevenue
-
YandexAppMetricaRevenue(double price, string currency) double Price { get; private set; } int? Quantity { get; set; } string Currency { get; private set; } string ProductID { get; set; } YandexAppMetricaReceipt? Receipt { get; set; } IDictionary Payload { get; set; }
- Класс YandexAppMetricaRevenue.YandexAppMetricaReceipt
-
string Data { get; set; } string Signature { get; set; } string TransactionID { get; set; }
- Класс YandexMetricaUserProfile
-
List<IYandexMetricaUserProfileUpdate> UserProfileUpdates { get; } YandexMetricaUserProfile Apply(IYandexMetricaUserProfileUpdate userProfileUpdate); YandexMetricaUserProfile ApplyFromArray(List<IYandexMetricaUserProfileUpdate> userProfileUpdates);
- Интерфейс IYandexMetricaAttribute
-
IYandexMetricaBirthDateAttribute BirthDate(); IYandexMetricaGenderAttribute Gender(); IYandexMetricaNameAttribute Name(); IYandexMetricaNotificationsEnabledAttribute NotificationsEnabled(); IYandexMetricaBooleanAttribute CustomBoolean(string key); IYandexMetricaCounterAttribute CustomCounter(string key); IYandexMetricaNumberAttribute CustomNumber(string key); IYandexMetricaStringAttribute CustomString(string key);
- Интерфейс IYandexMetricaBirthDateAttribute
-
IYandexMetricaUserProfileUpdate WithAge(int age); IYandexMetricaUserProfileUpdate WithBirthDate(DateTime date); IYandexMetricaUserProfileUpdate WithBirthDate(int year); IYandexMetricaUserProfileUpdate WithBirthDate(int year, int month); IYandexMetricaUserProfileUpdate WithBirthDate(int year, int month, int day); IYandexMetricaUserProfileUpdate WithValueReset();
- Интерфейс IYandexMetricaGenderAttribute
-
IYandexMetricaUserProfileUpdate WithValue(YandexMetricaGender value); IYandexMetricaUserProfileUpdate WithValueReset();
- Перечисление YandexMetricaGender
-
MALE, FEMALE, OTHER
- Интерфейс IYandexMetricaNameAttribute
-
IYandexMetricaUserProfileUpdate WithValue(string value); IYandexMetricaUserProfileUpdate WithValueReset();
- Интерфейс IYandexMetricaNotificationsEnabledAttribute
-
IYandexMetricaUserProfileUpdate WithValue(bool value); IYandexMetricaUserProfileUpdate WithValueReset();
- Интерфейс IYandexMetricaBooleanAttribute
-
IYandexMetricaUserProfileUpdate WithValue(bool value); IYandexMetricaUserProfileUpdate WithValueIfUndefined(bool value); IYandexMetricaUserProfileUpdate WithValueReset();
- Интерфейс IYandexMetricaCounterAttribute
-
IYandexMetricaUserProfileUpdate WithDelta(double value);
- Интерфейс IYandexMetricaNumberAttribute
-
IYandexMetricaUserProfileUpdate WithValue(double value); IYandexMetricaUserProfileUpdate WithValueIfUndefined(double value); IYandexMetricaUserProfileUpdate WithValueReset();
- Интерфейс IYandexMetricaStringAttribute
-
IYandexMetricaUserProfileUpdate WithValue(string value); IYandexMetricaUserProfileUpdate WithValueIfUndefined(string value); IYandexMetricaUserProfileUpdate WithValueReset();
- Перечисление YandexAppMetricaRequestDeviceIDError
-
UNKNOWN, NETWORK, INVALID_RESPONSE
Подробно о методах и интеграции AppMetrica в приложение смотрите в разделах документации для Android и iOS.