FocusOnReadingPositionTarget

Option values used with IFocusOnReadingPositionTargetOptions.target

Entries

Link copied to clipboard

Focuses on the closest element that matches the reading position. If the reading position is inside a Text node, the focus will be applied on the nearest ancestor Element or sibling Element.

Link copied to clipboard

Focuses as close as possible to the reading position. If the reading position is within a text node, a temporary wrapper element is created around the nearest character to enable focus. This provides more precise focus positioning than NEAREST_ELEMENT.

Link copied to clipboard

Focuses on the word as close as possible to the reading position. If the reading position is within a text node, a temporary wrapper element is created around the nearest word to enable focus. This provides more precise focus positioning than NEAREST_ELEMENT, especially useful for screen readers.

Link copied to clipboard

Focuses on the sentence or the nearest element boundary as close as possible to the reading position. If the reading position is within a text node, a temporary wrapper element is created around the nearest sentence to enable focus. This provides more precise focus positioning than NEAREST_ELEMENT, especially useful for screen readers.

Link copied to clipboard

Disables focus at the reading position. Focus may still be applied to the page container or page body if those options are enabled.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.