private static void ShowSoftwareKeyboard(IntPtr focusedElement) { try { if (_isInitialized) { Noesis.UIElement element = Noesis.Extend.GetProxy(focusedElement, false) as Noesis.UIElement; _instance._softwareKeyboardManager.ShowKeyboard(element); } } catch(Exception e) { Noesis.Error.SetNativePendingError(e); } }
//////////////////////////////////////////////////////////////////////////////////////////////// // Called when a UI element gets the focus and software keyboard should be opened protected virtual void OnShowKeyboard(Noesis.UIElement focusedElement) { if (focusedElement != null) { _textBox = focusedElement as Noesis.TextBox; if (_textBox != null) { _keyboard = OpenTextBoxKeyboard(_textBox); _isOpen = _keyboard != null; return; } _passwordBox = focusedElement as Noesis.PasswordBox; if (_passwordBox != null) { _keyboard = OpenPasswordBoxKeyboard(_passwordBox); _isOpen = _keyboard != null; return; } } }
public override void OpenSoftwareKeyboard(Noesis.UIElement focused) { UIView view = Window.RootViewController.View; view.BecomeFirstResponder(); }
public override void OpenSoftwareKeyboard(Noesis.UIElement focused) { InputManager?.ShowSoftInput(View, ShowFlags.Implicit); }
//////////////////////////////////////////////////////////////////////////////////////////////// internal void ShowKeyboard(Noesis.UIElement focusedElement) { #if !UNITY_STANDALONE OnShowKeyboard(focusedElement); #endif }