public void Show(bool show, SoftKeyboardType type) { if (show) { Shown?.Invoke(); } else { Hidden?.Invoke(); } }
public void ShowSoftKeyboard(bool show, SoftKeyboardType type) { if (show != textView.IsFirstResponder) { if (show) { textView.KeyboardType = type == SoftKeyboardType.Default ? UIKeyboardType.Default : UIKeyboardType.NumberPad; textView.BecomeFirstResponder(); } else { textView.ResignFirstResponder(); } } }
public void Show(bool show, SoftKeyboardType type) { gameView.SoftKeyboardType = type; if (show) { gameView.Focusable = true; gameView.FocusableInTouchMode = true; gameView.RequestFocus(); imm.ShowSoftInput(gameView, ShowFlags.Forced); } else { gameView.Focusable = false; gameView.FocusableInTouchMode = false; imm.HideSoftInputFromWindow(gameView.WindowToken, 0); // HACK: This will reset UI flags back to values defined in OnWindowFocusChanged ActivityDelegate.Instance.Activity?.OnWindowFocusChanged(true); } }
public void Show(bool show, SoftKeyboardType type) { controller.ShowSoftKeyboard(show, type); }