Пример #1
0
        public App()
        {
            InitializeComponent();

            Amplitude.Initialize(Constants.api_key);
            Amplitude.InstanceFor(Constants.userId, Constants.userProperties).StartSession();


            Amplitude.InstanceFor(Constants.userId, Constants.userProperties).Track("start");

            MainPage = new NavigationPage(new LoginPage());
        }
Пример #2
0
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += this.OnSuspending;
            Amplitude amplitude = Amplitude.Initialize(this, "a2dbce0e18dfe5f8e74493843ff5c053");

            amplitude.SetUserProperties(new Dictionary <string, object>()
            {
                { "int", 1 },
                { "string", "str" },
                { "float", 1.1 },
                { "bool", true }
            });
        }