IKeyboard
Namespace:FairyGUI
Source:Assets/Scripts/Core/Text/IKeyboard.cs (line 6)
public interface IKeyboard
用于文本输入的键盘接口
Methods
Close()
void Close();
关闭键盘
Source:Core/Text/IKeyboard.cs (line 40)
GetInput()
string GetInput();
用户输入的文本。
Source:Core/Text/IKeyboard.cs (line 22)
Open(string, bool, bool, bool, bool, string, int, bool)
void Open(string text, bool autocorrection, bool multiline, bool secure, bool alert, string textPlaceholder, int keyboardType, bool hideInput);
打开键盘
| Parameter | Type | Description |
|---|---|---|
text | string | |
autocorrection | bool | |
multiline | bool | |
secure | bool | |
alert | bool | |
textPlaceholder | string | |
keyboardType | int | |
hideInput | bool |
Source:Core/Text/IKeyboard.cs (line 35)
Properties
done
bool done { get; }
键盘已收回,输入已完成
Source:Core/Text/IKeyboard.cs (line 11)
supportsCaret
bool supportsCaret { get; }
是否支持在光标处输入。如果为true,GetInput返回的是在当前光标处需要插入的文本,如果为false,GetInput返回的是整个文本。
Source:Core/Text/IKeyboard.cs (line 16)