#pragma warning restore 0414 /// <summary> /// Opens a platform specific keyboard. /// </summary> public void OpenSystemKeyboard() { #if WINDOWS_UWP wmrKeyboard.ShowKeyboard(wmrKeyboard.Text, false); #elif UNITY_IOS || UNITY_ANDROID touchscreenKeyboard = TouchScreenKeyboard.Open(string.Empty, TouchScreenKeyboardType.Default, false, false, false, false); #endif }
public void OpenSystemKeyboard() { #if !UNITY_EDITOR && UNITY_WSA wmrKeyboard.ShowKeyboard(); #elif UNITY_IOS || UNITY_ANDROID touchscreenKeyboard = TouchScreenKeyboard.Open("", TouchScreenKeyboardType.Default, false, false, false, false); #endif }
/// <summary> /// Update the text button object properties and callback methods based on the text input button state. /// </summary> /// <param name="textInput"></param> public void UpdateKeyboardState(TextInputObject textInput) { ResetKeyboardProperties(); //If the button is on an active state if (textInput.Button.CurrentDimension.Equals(1)) { keyboard.OnHideKeyboard.AddListener(() => ResetKeyboardProperties()); CurrentlyActiveTextbox = textInput; keyboard.ShowKeyboard(); } }
public void OpenKeyboard() { keyboard.ClearKeyboardText(); keyboard.ShowKeyboard(); }