Class

SetSelectionCommand

Sets the selection on the text.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
class SetSelectionCommand(val start: Int, val end: Int) : EditCommand

Sets the selection on the text. When start and end have the same value, it sets the cursor position.

See setSelection).

Parameters

start The inclusive start offset of the selection region.
end The exclusive end offset of the selection region.