示例#1
0
 private void InitEvents()
 {
     if (TokenCell != null)
     {
         TokenCell.InitEvents();
         TokenCell.Entry.Completed += Entry_Completed;
     }
 }
示例#2
0
        protected override void OnDisappearing()
        {
            base.OnDisappearing();
            ListenYubiKey(false);

            if (TokenCell != null)
            {
                TokenCell.Dispose();
                TokenCell.Entry.Completed -= Entry_Completed;
            }
        }
示例#3
0
        protected override void OnDisappearing()
        {
            base.OnDisappearing();
            ListenYubiKey(false);

            if (TokenCell != null)
            {
                TokenCell.Dispose();
                TokenCell.Entry.Completed -= Entry_Completed;
            }

            MessagingCenter.Unsubscribe <Application, string>(Application.Current, "GotYubiKeyOTP");
            MessagingCenter.Unsubscribe <Application>(Application.Current, "ResumeYubiKey");
        }
示例#4
0
        protected override void OnAppearing()
        {
            base.OnAppearing();
            ListenYubiKey(true);

            if (TokenCell != null)
            {
                TokenCell.InitEvents();
                TokenCell.Entry.Completed += Entry_Completed;
            }
            else if (Device.RuntimePlatform == Device.Android)
            {
                MessagingCenter.Send(Application.Current, "DismissKeyboard");
            }
        }