iPhoneKeyboard 键盘
Interface into iPhone native on screen keyboard. This interface allows to display different types of the keyboard: ASCII, Numbers, URL, Email, and others.
iPhone本身屏幕上的键盘的接口。这个接口允许你显示不同的键盘:ASCII码,数字,URL,电子邮件,和其他。
Because the appearance of the keyboard has the potential to obscure portions of your user interface, it is up to you to make sure that parts of your user interface are not obscured when the keyboard is being displayed.
由于键盘的外形有可能的部分遮住你的用户界面,当键盘被显示的时候,你应该确保那部分用户界面没有被遮挡。
iPhoneKeyboard.visible and iPhoneKeyboard.area should be used to determine if the keyboard is being shown (activated) and what portion of the screen is using.
iPhoneKeyboard.visible和iPhoneKeyboard.area被用来确定键盘正显示(激活)和哪一部分屏幕使用。
Apple's API does not allow to explicitly control the orientation of the keyboard. Instead you can define iPhoneKeyboard.autorotateToPortrait, iPhoneKeyboard.autorotateToPortraitUpsideDown, iPhoneKeyboard.autorotateToLandscapeLeft, iPhoneKeyboard.autorotateToLandscapeRight if the keyboard needs to be automatically rotated to match a specific orientation of the device.
苹果的API不允许明确地控制键盘的方向。但是,你可以定义iPhoneKeyboard.autorotateToPortrait ,iPhoneKeyboard.autorotateToLandscapeLeft,iPhoneKeyboard.autorotateToPortraitUpsideDown,iPhoneKeyboard.autorotateToLandscapeRight,如果键盘需要自动旋转匹配一个具体的定位装置。
Instance of this class can be used as a yield instruction. It waits until keyboard becomes inactive that is disappears from the screen.
这个类的实例可以用来作为一个yield指令。它等待直到变为无效,键盘从屏幕上消失了。
Variables变量
-
Returns the text displayed by the input field of the keyboard. This value can be accessed at any moment, even if user has not yet finished input process.
返回显示在键盘输入区域的text(文字)。这个值可以在任何时刻被存取,即使用户尚未完成输入的过程中。 -
Specifies if the keyboard is visible or is sliding into the position on the screen.
指定键盘是否显示或者正在向屏幕指定位置滑动。 -
Specifies if input process was finished (Read Only)
输入过程是否结束(只读)
Class Functions类函数
-
Specifies if text input field above the keyboard will be hidden when the keyboard is on screen.
当键盘显示在屏幕上的时候指定在键盘上面的输入框是否被隐藏。 -
Specifies whether the keyboard should be automatically rotated to Portrait orientation to match orientation of the device.
指定键盘是否应该被自动旋转到纵向方向来匹配定位装置。 -
Specifies whether the keyboard should be automatically rotated to PortraitUpsideDown orientation to match orientation of the device.
指定键盘是否应该自动旋转到PortraitUpsideDown定位来匹配的定位装置 -
Specifies whether the keyboard should be automatically rotated to LandscapeLeft orientation to match orientation of the device.
指定键盘是否应该自动旋转到LandscapeLeft定位来匹配的定位装置 -
Specifies whether the keyboard should be automatically rotated to LandscapeRight orientation to match orientation of the device.
指定键盘是否应该自动旋转到LandscapeRight定位来匹配的定位装置 。注:Portrait、PortraitUpsideDown、LandscapeLeft、LandscapeRight 是在PlayerSetting中Resolution下Default Orientation的四个属性。 -
Returns portion of the screen which is covered by the keyboard.
返回被键盘覆盖的屏幕部分。 -
Returns true whenever any keyboard is completely visible on the screen.
当任何键盘在屏幕上完全可见,返回true。
Class Functions类函数
-
Opens the native iPhone keyboard on the screen.
打开iPhone原生键盘在屏幕上