Methods

Attention.

Support and development of the plugin has been stopped. We do not guarantee the SDK will work correctly.

IYandexMetrica interface
// 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 class
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 class
double Latitude { get; set; }
double Longitude { get; set; }
YandexAppMetricaPreloadInfo class
YandexAppMetricaPreloadInfo(string trackingId);
            
string TrackingId { get; private set; }
Dictionary<string, string> AdditionalInfo { get; private set; }
YandexAppMetricaRevenue class
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 class
string Data { get; set; }
string Signature { get; set; }
string TransactionID { get; set; }
YandexMetricaUserProfile class
List<IYandexMetricaUserProfileUpdate> UserProfileUpdates { get; }
YandexMetricaUserProfile Apply(IYandexMetricaUserProfileUpdate userProfileUpdate);
YandexMetricaUserProfile ApplyFromArray(List<IYandexMetricaUserProfileUpdate> userProfileUpdates);
IYandexMetricaAttribute interface
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 interface
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 interface
IYandexMetricaUserProfileUpdate WithValue(YandexMetricaGender value);
IYandexMetricaUserProfileUpdate WithValueReset();
YandexMetricaGender enumeration
MALE,
FEMALE,
OTHER
IYandexMetricaNameAttribute interface
IYandexMetricaUserProfileUpdate WithValue(string value);
IYandexMetricaUserProfileUpdate WithValueReset();
IYandexMetricaNotificationsEnabledAttribute interface
IYandexMetricaUserProfileUpdate WithValue(bool value);
IYandexMetricaUserProfileUpdate WithValueReset();
IYandexMetricaBooleanAttribute interface
IYandexMetricaUserProfileUpdate WithValue(bool value);
IYandexMetricaUserProfileUpdate WithValueIfUndefined(bool value);
IYandexMetricaUserProfileUpdate WithValueReset();
IYandexMetricaCounterAttribute interface
IYandexMetricaUserProfileUpdate WithDelta(double value);
IYandexMetricaNumberAttribute interface
IYandexMetricaUserProfileUpdate WithValue(double value);
IYandexMetricaUserProfileUpdate WithValueIfUndefined(double value);
IYandexMetricaUserProfileUpdate WithValueReset();
IYandexMetricaStringAttribute interface
IYandexMetricaUserProfileUpdate WithValue(string value);
IYandexMetricaUserProfileUpdate WithValueIfUndefined(string value);
IYandexMetricaUserProfileUpdate WithValueReset();
YandexAppMetricaRequestDeviceIDError enumeration
UNKNOWN,
NETWORK,
INVALID_RESPONSE

Information about techniques and integration AppMetrica in the application, see the documentation for Android and iOS.