private void InitEvents() { if (TokenCell != null) { TokenCell.InitEvents(); TokenCell.Entry.Completed += Entry_Completed; } }
protected override void OnDisappearing() { base.OnDisappearing(); ListenYubiKey(false); if (TokenCell != null) { TokenCell.Dispose(); TokenCell.Entry.Completed -= Entry_Completed; } }
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"); }
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"); } }