protected virtual void OnKeyboardWillShow([NotNull] KeyboardSizeChangedEventArgs e) { if (e == null) { throw new ArgumentNullException(nameof(e)); } KeyboardWillShow?.Invoke(this, e); }
protected virtual void OnKeyboardShow(NSNotification notification) { if (isKeyboardShown) { return; } var rect = UIKeyboard.FrameEndFromNotification(notification); KeyboardWillShow?.Invoke(this, rect.Height); }
public void OnGlobalLayout() { GetInputMethodManager(); if (!_wasShown && IsCurrentlyShown()) { KeyboardWillShow?.Invoke(this, EventArgs.Empty); KeyboardDidShow?.Invoke(this, EventArgs.Empty); _wasShown = true; } else if (_wasShown && !IsCurrentlyShown()) { KeyboardWillHide?.Invoke(this, EventArgs.Empty); KeyboardDidHide?.Invoke(this, EventArgs.Empty); _wasShown = false; } }
private void NotifyKeyboardToggled() { if (inputManager.Handle == IntPtr.Zero) { inputManager = GetInputManager(); } if (ActivityProvider.CurrentActivity.CurrentFocus is EditText && keyboardHeight > 0 && !isShowingKeyboard && inputManager.IsActive) { isShowingKeyboard = true; KeyboardWillShow?.Invoke(this, keyboardHeight); return; } if (!(ActivityProvider.CurrentActivity.CurrentFocus is EditText) && isShowingKeyboard && inputManager.IsActive) { KeyboardWillHide?.Invoke(this, keyboardHeight); isShowingKeyboard = false; return; } }
private void KeyboardListner_KeyboardWillShow(object sender, double e) { KeyboardWillShow?.Invoke(this, e); }
private void OnKeyboardWillShow(object sender, UIKeyboardEventArgs e) { KeyboardWillShow?.Invoke(this, EventArgs.Empty); }
private void OnKeyboardWillShow(KeyboardVisibilityChangedEventArgs args) { KeyboardWillShow?.Invoke(this, args); }
internal void OnKeyboardWillShow() { KeyboardWillShow?.Invoke(this, null); }