Manual integration

Follow these steps to manually integrate Localytics into your Windows RT app.

In your application's App class, add the following line to the end of the existing using section. This code ensures that Localytics captures your application's transitions from foreground to background and back again as session opens and closes.
this.Integrate(appKey);
		CoreWindow.GetForCurrentThread().VisibilityChanged += (sender, args) =>
		{
	    	if (args.Visible)
	    	{
	    	    this.OpenSession();
	    	    this.Upload();
	    	}
	    	else
	    	{
	    	    this.CloseSession();
	    	    this.Upload();
	    	}
		};