Skip to content
9miao edited this page Oct 20, 2014 · 1 revision

CATextViewDelegate

Class Description

textView event delegate

Method

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

Method Description

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

Clone this wiki locally