public void OnNavigatedTo(INavigationParameters parameters)
        {
            disposables?.Dispose();
            disposables = new CompositeDisposable();

            IsLoggedIn.Where(x => x)
            .Take(1)
            .Delay(TimeSpan.FromSeconds(2.5))     /* ここでログイン確認後の遷移前タメ時間を調整 */
            .Subscribe(_ =>
            {
                GoNextIntroduction.Execute(null);
            });

            try
            {
                _ = NiconicoSession.SignInWithPrimaryAccount();
            }
            catch { }
        }
Exemplo n.º 2
0
        public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState)
        {
            disposables?.Dispose();
            disposables = new CompositeDisposable();

            IsLoggedIn.Where(x => x)
            .Take(1)
            .Delay(TimeSpan.FromSeconds(2.5))     /* ここでログイン確認後の遷移前タメ時間を調整 */
            .Subscribe(_ =>
            {
                GoNextIntroduction.Execute(null);
            });

            try
            {
                _ = NiconicoSession.SignInWithPrimaryAccount();
            }
            catch { }

            base.OnNavigatedTo(e, viewModelState);
        }