iPhoneKeyboard.done Manual     Reference     Scripting  
Scripting > Runtime Classes > iPhoneKeyboard
iPhoneKeyboard.done
このドキュメントは有志により翻訳されたもので、オフィシャルではありません。オリジナルのページはこちら
This document is unofficially translated by users.Please see the original document here.

翻訳に関する修正など、ご連絡はこちらまで。
Please send e-mail to here, when you have any question about the translation.

編集 (GitHub)

var done : bool

Description

Specifies if input process was finished (Read Only)

Keyboard input process can be finished either by user tapping "Done" button or script setting active property to false. Note that keyboard might be temporarily inactive (either by sliding in/out due to orientation change or by appearance of another keyboard) however it's input process might still be not finished and will be resumed automatically.

// Opens a keyboard and shows what has been typed.

private var keyboard : iPhoneKeyboard;
var iPhoneText : String = "";

function Start() {
keyboard = iPhoneKeyboard.Open(iPhoneText, iPhoneKeyboardType.Default);
}
function Update() {
if (keyboard.done)
print ("User input is: " + iPhoneText);
if(keyboard)
iPhoneText = keyboard.text;
}