Add() публичный Метод

Add new segmentation value
public Add ( string Key, string Value ) : void
Key string Segmenation key
Value string Segmenation value
Результат void
        private void RecordEventSegmentation_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            Segmentation segmentation = new Segmentation();
            segmentation.Add("country", "Ukraine");
            segmentation.Add("app_version", "1.2");

            Countly.RecordEvent("seconds", DateTime.Now.Second, segmentation);
        }
Пример #2
0
        private void RecordEventSegmentation_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            Segmentation segmentation = new Segmentation();
            segmentation.Add("country", "Ukraine");
            segmentation.Add("app_version", "1.2");

            Countly.RecordEvent("seconds", DateTime.Now.Second + 1, segmentation);

            Countly.AddBreadCrumb("segmentation event");
        }
Пример #3
0
        private CountlySDK.Segmentation CreateMenuOpenedSourceSegmentation(MenuOpenedSource?menuOpenedSource)
        {
            var segmentation = new CountlySDK.Segmentation();

            if (_menuOpenedSource is not null)
            {
                segmentation.Add("eventSource", _menuOpenedSource.ToString() + "Menu");
            }
            return(segmentation);
        }
Пример #4
0
 private async void OnTrayIconClicked(object?sender, EventArgs e)
 {
     await this.Dispatcher.InvokeAsync(async() =>
     {
         if (this.App.BarManager.BarVisible)
         {
             this.App.BarManager.HideBar();
             //
             var segmentation = new CountlySDK.Segmentation();
             segmentation.Add("eventSource", "trayIconClick");
             await App.Current.Countly_RecordEventAsync("morphicBarHide", 1, segmentation);
         }
         else
         {
             this.App.BarManager.ShowBar();
             //
             var segmentation = new CountlySDK.Segmentation();
             segmentation.Add("eventSource", "trayIconClick");
             await App.Current.Countly_RecordEventAsync("morphicBarShow", 1, segmentation);
         }
     });
 }