TextOffsetOnTouchEvent

Text component should implement an event of this type in order to receive callback on what was the text offset when text was touched initially. This event is fired only when motion event action is ACTION_DOWN. An example of the correct usage is:




static void textOffsetOnTouchEvent(
    ComponentContext c,
    CharSequence text,
    int textOffset) {
    ...
}
</pre>

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open var text: CharSequence
Link copied to clipboard
open var textOffset: Int