The end of the selection range inside the updated text
Since
Lens Scripting Version 365
Default Value
0
Snap OS
selectionStart
selectionStart:number
The start of the selection range inside the updated text (0 based index)
Since
Lens Scripting Version 365
Default Value
0
Snap OS
text
text:string
The updated text coming from the input method.
Since
Lens Scripting Version 365
Default Value
""
Snap OS
Methods
StaticgetTypeName
getTypeName():string
Returns the fully-qualified JavaScript type name for this class (for example, "Component.Camera"). This is a static accessor (no instance required) and returns the same value as the instance getTypeName().
Text update from the input method (text and selection range).
Since
Lens Scripting Version 365
Snap OS
Example