async void Color_Clicked()

in sampleAppXamarin/ButtonPage.xaml.cs [31:52]


        async void Color_Clicked(object sender, EventArgs e)
        {
            var color = await DisplayActionSheet("Send event with color property", null, null, "Yellow", "Blue", "Red");
            if (color.Equals("Yellow"))
            {
                Analytics.TrackEvent("Color event", new Dictionary<string, string> {
                    { "Color", "Yellow" }
                });
            }
            else if (color.Equals("Blue"))
            {
                Analytics.TrackEvent("Color event", new Dictionary<string, string> {
                    { "Color", "Blue" }
                });
            }
            else if (color.Equals("Red"))
            {
                Analytics.TrackEvent("Color event", new Dictionary<string, string> {
                    { "Color", "Red" }
                });
            }
        }