▸ getSelectedTextRange(): Promise<KeyboardGetSelectedTextRangeResponse>
description Obtains the cursor position of the input box after the focus of input, textarea,
etc. Note: This API works only when it is called during the focus process
example
Code
Returns
Promise<KeyboardGetSelectedTextRangeResponse>
KeyboardGetSelectedTextRangeResponse
Ƭ KeyboardGetSelectedTextRangeResponse: Object
Type declaration
| Name | Type |
|---|---|
start | number |
end | number |
此页面是否有帮助?
Last modified on