Layer.setAttentionPos

Function/Meaning

Designation of gaze position

Type
Layerclassmethod of
Syntax
setAttentionPos(left, top)
Arguments
left

Specifies the x-coordinate value (in the display coordinates of this layer) in pixels.
This value can also be set / obtained with the Layer.attentionLeft property.

top

Specifies the x-coordinate value (in the display coordinates of this layer) in pixels.
This value can also be set / obtained with the Layer.attentionTop property.

Return value
None (void)
Explanation

Specify the gaze position.
The gaze position is usually set to the position of the caret (a bar that blinks with a text editor to indicate the character input position from the keyboard).
IME unconfirmed characters are displayed at this gaze position.

Reference
Layer.useAttention