Example #1
0
        public override void Initialize(IApplication application)
        {
            base.Initialize(application);

            ViewportManager vm = WaveServices.GetService<ViewportManager>();
            vm.Activate(800, 480, ViewportManager.StretchMode.Uniform);

            this.analyticsManager = new AnalyticsManager(application.Adapter);
            WaveServices.RegisterService<AnalyticsManager>(analyticsManager);

            this.analyticsManager.SetAnalyticsSystem(new LocalyticsInfo(/*Insert your Localytics API KEY code here*/));
            this.analyticsManager.Open();
            this.analyticsManager.Upload();

            ScreenContext screenContext = new ScreenContext(new MyScene());
            WaveServices.ScreenContextManager.To(screenContext);
        }
Example #2
0
        public override void Initialize(IApplication application)
        {
            base.Initialize(application);

            ViewportManager vm = WaveServices.GetService<ViewportManager>();
            vm.Activate(800, 480, ViewportManager.StretchMode.Uniform);

            this.analyticsManager = new AnalyticsManager(application.Adapter);
            WaveServices.RegisterService<AnalyticsManager>(analyticsManager);

            this.analyticsManager.SetAnalyticsSystem(new LocalyticsInfo("492098e861d94597fd5f0cf-e9b821a6-7d17-11e3-9836-009c5fda0a25"));
            this.analyticsManager.Open();
            this.analyticsManager.Upload();

            ScreenContext screenContext = new ScreenContext(new MyScene());
            WaveServices.ScreenContextManager.To(screenContext);
        }