public void OnGlobalLayout(object sender, EventArgs args)
 {
     GetInputMethodManager();
     if (!_wasShown && IsKeyboardShowing())
     {
         KeyboardIsShown?.Invoke(this, EventArgs.Empty);
         _wasShown = true;
     }
     else if (_wasShown && !IsKeyboardShowing())
     {
         KeyboardIsHidden?.Invoke(this, EventArgs.Empty);
         _wasShown = false;
     }
 }
Пример #2
0
 public void OnGlobalLayout()
 {
     GetInputMethodManager();
     if (!wasShown && IsCurrentlyShown())
     {
         KeyboardIsShown?.Invoke(this, EventArgs.Empty);
         wasShown = true;
     }
     else if (wasShown && !IsCurrentlyShown())
     {
         KeyboardIsHidden?.Invoke(this, EventArgs.Empty);
         wasShown = false;
     }
 }
Пример #3
0
 private void OnKeyboardDidHide(object sender, EventArgs e)
 {
     KeyboardIsHidden?.Invoke(this, EventArgs.Empty);
 }