Function

delete

Delete the text between start (inclusive) and end (exclusive).

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

delete

Common
fun TextFieldBuffer.delete(start: Int, end: Int)

Delete the text between start (inclusive) and end (exclusive). Pass 0 as start and TextFieldBuffer.length as end to delete everything in this buffer.

Parameters

start The character offset of the first character to delete.
end The character offset of the first character after the deleted range.