private void CreatePresenter() { if (_presenter == null) { _presenter = new SplashPresenter(this); } }
private void Initialize() { Common.CommonImpl.NotificationHandler.Instance.SetContext(this); ApplicationCore.Container.RegisterType <ISecureDataStorage, SecureStorageHandler>(this); ApplicationCore.Container.RegisterType <IDeviceHandler, DeviceHandler>(this); ApplicationCore.Container.RegisterInstance <INotificationService>(Common.CommonImpl.NotificationHandler.Instance); ApplicationCore.Container.RegisterSingletonType <IAnalytics, AnalyticsHandler>(); ApplicationCore.Instance.Initialize(); Common.CommonImpl.NotificationHandler.Instance.Register(); ApplicationCore.Container.Resolve <IAnalytics>().Initialize(); splashPresenter = new SplashPresenter(this); urlPresenter = new UrlPresenter(this); termsPresenter = new TermsPresenter(this as IStartupRouter); loginPresenter = new LoginPresenter(this); signupPresenter = new SignupPresenter(this); profilePresenter = new ProfilePresenter(this); mobilePhoneNumberPresenter = new MobilePhoneNumberPresenter(this); updatePresenter = new UpdatePresenter(this); }