-
Notifications
You must be signed in to change notification settings - Fork 421
CATextViewDelegate
textView event delegate
access modifier |
Method name |
Description |
public |
onTextViewAttachWithIME |
trigger when opening keyboard |
public |
onTextViewDetachWithIME |
trigger when closing keyboard |
public |
onTextViewInsertText |
trigger when inserting text |
public |
onTextViewDeleteBackward |
trigger when deleting text |
virtual bool onTextViewAttachWithIME(CATextView sender)*
Return value: bool
Parameter:
Type |
Parameter name |
Description |
CATextView * |
sender |
current textView |
virtual bool onTextViewDetachWithIME(CATextView sender)*
Return value: bool
Parameter:
Type |
Parameter name |
Description |
CATextView * |
sender |
current textView |
virtual bool onTextViewInsertText(CATextView sender, const char * text, int nLen)*
Return value: bool
Parameter:
Type |
Parameter name |
Description |
CATextView * |
sender |
current textView |
const char * |
text |
inserted text |
int |
nLen |
inserted text’s length |
virtual bool onTextViewDeleteBackward(CATextView sender, const char * delText, int nLen)*
Return value: bool
Parameter:
Type |
Parameter name |
Description |
CATextView * |
sender |
current textView |
const char * |
text |
deleted text |
int |
nLen |
deleted text’s length |