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; } }
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; } }
private void OnKeyboardDidHide(object sender, EventArgs e) { KeyboardIsHidden?.Invoke(this, EventArgs.Empty); }