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()); }
/// <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 } }); }