Class cc.IMEDelegate
Extends
cc.Class.
Defined in: CCIMEDispatcher.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Input method editor delegate.
|
Method Attributes | Method Name and Description |
---|---|
Remove delegate
|
|
Decide the delegate instance is ready for receive ime message or not.
|
|
Decide the delegate instance can stop receive ime message or not.
|
|
ctor()
Constructor
|
|
Called by CCIMEDispatcher when user clicked the backward key.
|
|
Detach with IME
|
|
When the delegate detach with IME, this method call by CCIMEDispatcher.
|
|
When the delegate detach with IME, this method call by CCIMEDispatcher.
|
|
Called by CCIMEDispatcher for get text which delegate already has.
|
|
insertText(text, len)
Called by CCIMEDispatcher when some text input from IME.
|
|
keyboardDidHide(info)
|
|
keyboardDidShow(info)
|
|
keyboardWillHide(info)
|
|
keyboardWillShow(info)
|
|
Remove delegate
|
Method Detail
{Boolean}
attachWithIME()
Remove delegate
- Returns:
- {Boolean}
{Boolean}
canAttachWithIME()
Decide the delegate instance is ready for receive ime message or not.
Called by CCIMEDispatcher.
Called by CCIMEDispatcher.
- Returns:
- {Boolean}
{Boolean}
canDetachWithIME()
Decide the delegate instance can stop receive ime message or not.
- Returns:
- {Boolean}
ctor()
Constructor
deleteBackward()
Called by CCIMEDispatcher when user clicked the backward key.
{Boolean}
detachWithIME()
Detach with IME
- Returns:
- {Boolean}
didAttachWithIME()
When the delegate detach with IME, this method call by CCIMEDispatcher.
didDetachWithIME()
When the delegate detach with IME, this method call by CCIMEDispatcher.
{String}
getContentText()
Called by CCIMEDispatcher for get text which delegate already has.
- Returns:
- {String}
insertText(text, len)
Called by CCIMEDispatcher when some text input from IME.
- Parameters:
- text
- len
keyboardDidHide(info)
- Parameters:
- info
keyboardDidShow(info)
- Parameters:
- info
keyboardWillHide(info)
- Parameters:
- info
keyboardWillShow(info)
- Parameters:
- info
removeDelegate()
Remove delegate